Yes, I too just discovered this:
The /query endpoint accepts two content types:
- application/json
- 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.