GraphQL Authorization and Endpoint Selection

I am having a difficult time understanding how to go about authorizing myself through GraphQL (using a personal access token via GitHub ) and defining an endpoint (the GitHub GraphQL endpoint) in GraphQL calls.

I am migrating from the REST API v3 , so I am unsure on how I would go about doing the same in GraphQL (alongside authorization.) I will be using GraphQL.js within my code-base. Thank you for any help you can provide!

The documentation has information on the GraphQL endpoint to use. Authenticating with GraphQL describes the process to use to create a personal access token. Finally, Communicating with GraphQL talks about how to communicate that personal access token to the server via an Authorization header.

1 Like