query-graphql
Execute GraphQL queries with specified variables and headers using a configurable endpoint. Simplifies interaction with GraphQL servers for data retrieval and manipulation.
Instructions
Query a GraphQL endpoint with the given query and variables
Input Schema
Name | Required | Description | Default |
---|---|---|---|
endpoint | No | Optional: Override the default endpoint, the already used endpoint is: http://localhost:3000/graphql | |
headers | No | Optional: Add additional headers, the already used headers are: {} | |
query | Yes | ||
variables | No |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"endpoint": {
"description": "Optional: Override the default endpoint, the already used endpoint is: http://localhost:3000/graphql",
"format": "uri",
"type": "string"
},
"headers": {
"anyOf": [
{
"additionalProperties": {
"type": "string"
},
"type": "object"
},
{
"type": "string"
}
],
"description": "Optional: Add additional headers, the already used headers are: {}"
},
"query": {
"type": "string"
},
"variables": {
"type": "string"
}
},
"required": [
"query"
],
"type": "object"
}