🙏 Adding 100% compliance with GraphQL!
I have added support to the GraphQL introspection fields, so my implementation of a GraphQL server in PHP is now 100% GraphQL-spec compliant!
Because now it's officially GraphQL, I will simply call this project GraphQL by PoP 😁.
The API comes in 2 modes:
- Classic GraphQL: The GraphQL that you expect
- Extended GraphQL: An upgraded version of GraphQL, supporting many more features (such as composable fields and composable directives), and using a URL-based syntax.
Demo! permalink
Note: The demo website runs on WordPress, has the GraphQL endpoint here, and its GraphiQL client is here.
Since supporting introspection field "__schema"
, we can now use GraphiQL's Doc Explorer to read the schema documentation:
What's next? permalink
I must still add support for mutations. I have already started work on it, and depending on my time availability, I may be able to finish it in a couple of months.
Check it out! permalink
If your project uses WordPress, you can already use it (the API is CMS-agnostic, so it can also work with Symfony/Laravel/Joomla/Drupal, however adapters for them have not been implemented yet).
So give GraphQL by PoP a try, you won't regret it! And let me know how it goes 🙏