• shawfactor

    (@shawfactor)


    Headless wp is an idiotic idea and many people use graphql to achieve it. So I can’t give it 5 stars.

    That being said graphql is a far better way of querying WordPress data than the rest api. So the underlying tool is good

    • This topic was modified 4 years ago by shawfactor.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Jason Bahl

    (@jasonbahl)

    @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.

    jonshipman

    (@jonshipman)

    You can also use it to preload related articles while a user is reading. Or preload pages when a user hovers over a link. Doesn’t have to be 100% headless.

    I’m personally toying with a partial headless concept myself – modifying CRA build output into a read-to-install theme. So it’s still in WordPress as a theme, but you have the power that client side rendering gives you. If I can find the time to write a php apollo hydrator then it’ll be perfect.

    Thread Starter shawfactor

    (@shawfactor)

    Client side rendering content is a flawed idea full stop (functionality is okay though). So don’t waste your time creating more vaporwave

    That’s is why I gave this plugin 4 stars. The underlying plugin is great and very powerful. The great pity is people use it irresponsibly.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘headless wp is idiotic – but still cool’ is closed to new replies.