Search code examples
graphqlaws-appsyncgraphiql

Configuring GraphiQL for AWS App Sync end point with AWS token authentication


I am trying to learn GraphQL and I created an App Sync service in AWS, I am using the GraphiQL (Playground) client App, and I cannot get the header correct for the authentication, I keep getting unauthorized error. How do I structure the Header JSON for APP ID and API TOKEN.

Thanks Phil


Solution

  • You can create a query on the AppSync console, monitor it through the developers tools and then continue with the steps described in this answer. In this way you can see which headers are required and how are they provided.