Skip to content

Is it possible to pass extensions to the server? #1847

Answered by JoviDeCroock
pdong asked this question in Q&A
Discussion options

You must be logged in to vote

Currently we don't support this as most servers also don't really support it, I think in general it's safer to pass tokens like this:

fetchOptions: () => {
    return {
      headers: {
          authorization: "token",
      },
    };
  },

Any specific reason you prefer using extensions? Generally from the graphql-spec we can see that extensions is meant to extend the spec.

I guess if we were to add this it would be part of the OperationContext rather than something in fetchOptions,....

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by kitten
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants