Skip to content

Can you query an AWS AppSync API from GraphQL PlayGround? #840

@tinymarsracing

Description

@tinymarsracing

Hey guys,

I would love to use the Playground for test queries and such. Any experience in setting this up? AWS AppSync gives you a config file in the following format, but I suspect this is wired to AWS's Apollo Client and probably not something you can use as a generic URL endpoint with Playground:

export default {
    "graphqlEndpoint": "https://12345.appsync-api.region-code.amazonaws.com/graphql",
    "region": "region-code",
    "authenticationType": "API_KEY",
    "apiKey": "12345"
}

When you try to enter the endpoint, you get the following error message:

{
  "error": "Response not successful: Received status code 401"
}

I tried to paste parts of the config file to the HTTP headers, but that didn't help either (no idea how to format that though). Any ideas?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions