Graphql Schema Extend
graphql_schema_extendExtend GraphQL schema with custom fields.
Instructions
Extend GraphQL schema with custom fields.
Verifies the site actually has a graphql.schema.customization
configuration object before touching it. The previous call passed a
whole JSON document as drush config:set's key argument --
config:set takes <config> <key> <value> -- so every invocation
failed at drush, and no module on most sites provides that config
object in the first place.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"type_name": "<type_name>",
"fields": "<fields>"
},
"name": "graphql_schema_extend"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fields | Yes | ||
| type_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||