![]() ![]() ![]() I'll be using the following query, space id and access token in this example, but feel free to substitute your own if you'd like to try it yourself. If the query doesn't have any errors a JSON blob containing the data from your space will show up on the right. GraphQL is self-documenting, meaning that we can use both the documentation explorer and GraphiQL's built-in autocompletion (brought up via ctrl-space) to create a query. Check out this blog post if you'd like to learn more, but the important part is it's already got some content models and content in the space.įrom GraphiQL we can start creating a query. Open up, replacing the spaceID and accessToken with your own.įor this example, I'm using the space from my Serverless SuperHero website. To find a query we can use GraphiQL, an in-browser GraphQL IDE. For the API endpoint, we can use Contentful's API Base URL, taken from the GraphQL docs. Getting both of those items via Contentful is a breeze. Before we can get started, we need a query and an API endpoint to hit. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |