Getting started with GraphQL
GraphQL Content API
GraphQL is a flexible data query language that allows you to define API call responses to match your use case and technical needs (and much more). If you are new to the technology, here are some great educational resources to get you up to speed:
The GraphQL Content API supports both our Content Delivery API (CDA) and our Content Preview API (CPA). It offers a fully functional equivalent to the REST implementation of the two APIs. Every Contentful space comes with a GraphQL schema based on its content types. GraphQL endpoint filtering capabilities, schema generation process, and error codes are explained in the Reference guide.
To help you explore the capabilities of the GraphQL API, a demo space populated with a sample content model and a complementary example application is set up:
You can query the demo space and examine its schema interactively, using the GraphiQL client embedded below (or working with it in a new tab).
Learn GraphQL with Contentful in a video course
To provide an easy starting point for your own projects, have a look at our GraphQL course "What's your query?". You will learn GraphQL core principles using React.
Now that you have covered the basics, learn how to implement GraphQL queries into your application by following language-specific starter guides:
- iOS tutorial (requires Apollo iOS SDK)
- Android tutorial (requires Apollo Android SDK)
For GraphQL API documentation and troubleshooting, please consult the reference guide:
To share your thoughts, ideas, and feedback use the feedback button or connect with us on Slack.