Blog entries, ordered by published date

  1. πŸ™…β€β™€οΈ Why GraphQL should not be in WordPress core

    Yep, you read that title correctly. Even though I am myself the creator of a GraphQL server for WordPress, I've changed my mind concerning if WordPress should ship with GraphQL or not. Until not long ago, I believed that GraphQL should be in WordPress... Read more

  2. πŸš€ Released new version 0.8 of the GraphQL API for WordPress!

    Version 0.8 of the GraphQL API for WordPress is now available for download! πŸŽ‰ This is a huge release, which focuses on three areas: Refactoring the codebase to enable extensions Further satisfying the GraphQL specification Completing the GraphQL schema... Read more

  3. ❓ When to use WPGraphQL, and when the GraphQL API for WordPress?

    A few days ago, I published an article on Smashing Magazine: Making GraphQL Work In WordPress. This article answers, from my own point of view (but objectively, I believe), the following questions: ❓ When should we use WPGraphQL, and when the GraphQL API... Read more

  4. πŸ•Έ How and Where can GraphQL improve WordPress, complementing the REST API

    Last weekend I published blog post πŸ¦ΈπŸΏβ€β™‚οΈ The GraphQL API for WordPress is now transpiled from PHP 8.0 to 7.1. After sharing the post on Reddit's /r/php, the community started a lively discussion on how worth it is using GraphQL in WordPress, how... Read more

  5. πŸ¦ΈπŸΏβ€β™‚οΈ The GraphQL API for WordPress is now transpiled from PHP 8.0 to 7.1

    Some time ago, I wrote about the art of transpiling PHP code: Transpiling PHP code from 8.0 to 7.x via Rector Coding in PHP 7.4 and deploying to 7.1 via Rector and GitHub Actions Transpiling PHP code enables to use the latest PHP features for development,... Read more

  6. πŸ’πŸ½β€β™‚οΈ Why to support CMS-agnosticism, the GraphQL API was split to ~90 packages, and benefits and drawbacks of this approach

    Last week I published article πŸ’πŸ»β€β™€οΈ Why the GraphQL API needs a Monorepo, and How it's optimized, explaining how and why the leoloso/PoP monorepo, which hosts the code for the GraphQL API for WordPress, can manage the plugin's codebase efficiently. I... Read more

  7. πŸ’πŸ»β€β™€οΈ Why the GraphQL API needs a Monorepo, and How it's optimized

    A few days ago I published article Hosting all your PHP packages together in a monorepo, explaining why we may want to use a monorepo to manage our PHP codebase, and how to do it via the Monorepo Builder. Here I'd like to complement that article,... Read more

  8. πŸŽ™ WPMRR Podcast: Growing a Powerful Decoupled WordPress Solution

    Joe Howard, host from the WPMRR podcast, interviewed me (Leonardo Losoviz) for his show. We talked about many things, mostly concerning decoupled WordPress (and GraphQL in particular), and the ongoing challenges of the business of building a plugin. I... Read more

  9. πŸ’¬ Proposing a new approach for 'Gutenberg and Decoupled Applications'

    A few days ago, WPGraphQL's creator Jason Bahl published Gutenberg and Decoupled Applications, analyzing the benefits and shortcomings of 3 approaches to integrating GraphQL with Gutenberg. A week earlier, he had also said on Twitter that the GraphQL API... Read more

  10. πŸ‘·πŸ½β€β™‚οΈ Building the GraphQL API in the Open #1 (March '21)

    Welcome to the very first "Building in the Open" newsletter! This is a channel to share news concerning the development of the GraphQL API for WordPress with the community, sent the first week of each month. Through this space, we will learn... Read more

  11. πŸ›  Should WordPress have a GraphQL API in core?

    WordPress 5.7 is coming out soon. As it has been for many releases now, the WP REST API will also be shipping several new features. Among the new features, one caught my attention: "Image Editor Accepts a List of Modifiers". The... Read more

  12. πŸ₯Š GraphQL API vs WPGraphQL: the fight!

    Ladiessssssssssss, and gentlemen. Welcome to the MGM Grand Garden Arena for the bout of the century! Tonight, we are making history. Two young fighters will face each other out in the ring, clashing for the prize they have worked so hard for: To become... Read more

  13. πŸ‘¨πŸ»β€πŸ’» Demoing the GraphQL API for WordPress

    Yesterday I talked about GraphQL on WordPress, for WordCamp India 2021. I explored these topics: πŸ‘‰πŸ½ What is GraphQL? πŸ‘‰πŸ½ How is it different from REST? πŸ‘‰πŸ½ How do we use it with WordPress? Alongside, I did a demo of the GraphQL API for WordPress... Read more

  14. πŸ‘ΆπŸ» Rejuvenating WordPress through GraphQL

    WordPress is a legacy CMS: having been invented over 17 years ago, it's filled with PHP code that, given a new chance, it would be coded in a different way. GraphQL is a modern interface to access data. Please notice the word "interface": it... Read more

  15. 🍾 GraphQL API for WordPress is now scoped, thanks to PHP-Scoper!

    Plugin GraphQL API for WordPress is now scoped. This means the plugin can be finally uploaded to the WordPress plugin directory. To do it, I'm using the wonderful PHP-Scoper. Using this library with WordPress does not go without its challenges, so I'll... Read more

  16. πŸŽ‰ Released GraphQL API v0.7, with support for mutations, and nested mutations!

    Version 0.7 of the GraphQL API for WordPress, supporting mutations, and nested mutations, has been released! πŸŽ‰ Here is a tour showing the new additions. 1. Mutations! πŸš€ GraphQL mutations enable to modify data (i.e. perform side-effect) through the... Read more