Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.


Eyes on the APIs: How GraphQL 4 can help you create faster, more secure web projects that scale

The world of content management is becoming increasingly API-driven. Learn how you can use Silverstripe CMS to create a high-performing GraphQL API with just a few lines of configuration in this 45-minute presentation by Aaron Carlino (Uncle Cheese).

Read post

At Silverstripe, we’ve been investing heavily in researching API-driven websites and web applications with Silverstripe CMS. We believe having a robust content API that is easy for developers to customise and consume is critical to keeping our open source products competitive in the modern landscape of content management system offerings.

To hear more about what’s new in Silverstripe CMS with GraphQL and Decoupled, you can watch our recording from the latest Lunch and Learn at Silverstripe HQ. It’s an updated version of my talk form StripeEU last year—it contains new code demos and information on the latest updates to GraphQL 4. You can check out the talk here:

If you’re familiar with the underpinnings of the CMS today, you might be aware that the newest corners of the UI—notably asset admin, versioned admin, and elemental—rely on an API backed by GraphQL, using our supported silverstripe/graphql module. The choice to use GraphQL in the CMS has proven valuable to building our newer UIs with React, and it shows a lot of promise for the future of the CMS.

As much as we have benefited from using GraphQL in the admin interface, however, we believe this is just scratching the surface of where we can take this technology. Allowing developers to expose their content through an API opens up numerous opportunities for building not only Progressive Web Apps (PWA), but also high-performing, secure websites using API-driven frameworks like NextJS and Gatsby. This type of approach is often referred to as a “decoupled” or “headless” architecture.

We’ve refactored the new GraphQL v4 module to be faster, unblocking its use on larger websites and decoupled implementations. The module is in a pre-release state (see upgrade notes), and we’re relying on your feedback to stabilise it (through Github or #graphql on the Community Slack channel). The completely rewritten documentation shows you how to build powerful APIs with pagination, filtering, and DataObject smarts in a few lines of YAML.

About the author
Aaron Carlino

Aaron Carlino, better known by his whimsical pseudonym Uncle Cheese has been an active member of the SilverStripe community since 2007, and has never looked back. In that time, he has established himself as a support resource, mentor, and contributor of some of the framework's most popular open source modules.

Post your comment


No one has commented on this page yet.

RSS feed for comments on this page | RSS feed for all comments