@shawfactor WPGraphQL can be used entirely with PHP from within WordPress plugins and themes. While it’s common for decoupled applications to turn to GraphQL, you don’t have to have a decoupled JavaScript environment to benefit from WPGraphQL.
You can use the graphql()
function to get data you need in a PHP plugin or theme, without having to make a remote http request to an endpoint, and pass the data down to Template parts in PHP. Benefit from the declarative nature of the GraphQL Query Language, the benefits of GraphQL DataLoader techniques, validation, and more.
Of course, it’s also helpful for users that want to build decoupled applications, whether that’s using JS frameworks, or building native iOS and Android applications that must communicate over APIs if they need to show data from WordPress.