GraphQL: directive for GraphQL+- custom resolver (e.g Geolocation)

Yes, I too just discovered this:
The /query endpoint accepts two content types:

  1. application/json
  2. application/graphql± (sorry, this is what I meant by text/plain earlier)

For application/json, it accepts the following JSON object:

{
  "query": "some graphql+- query",
  "variables": map[string]string
}

But, I am not sure how to send variables in that query so that it could be directly plugged into @custom.

We will think about this.

1 Like