It’s in the works!
In the meantime though, in the interest of getting you closer to your goal, here’s a config for mutation:
"graphql": {
"schema": "type Mutation {\n addReview(text: String, userId: String): Review\n deletReview(reviewId: String): String\n}\n\ntype Query {\n user(id: String): User\n}\n\ntype Review {\n id: String\n text: String\n userId: String\n user: User\n}\n\ntype User {\n id: String\n username: String\n reviews: [Review]\n}",
"enabled": true,
"engine": {
"field_configs": [
{
"type_name": "Mutation",
"field_name": "addReview",
"disable_default_mapping": true,
"path": [
""
]
},
{
"type_name": "Mutation",
"field_name": "deletReview",
"disable_default_mapping": false,
"path": [
"message"
]
}
],
"data_sources": [
{
"kind": "REST",
"name": "addReview",
"internal": false,
"root_fields": [
{
"type": "Mutation",
"fields": [
"addReview"
]
}
],
"config": {
"url": "http://localhost:4001/reviews",
"method": "POST",
"body": "{\n \"text\": \"{{.arguments.text}}\",\n \"userId\": \"{{.arguments.userId}}\"\n}",
"headers": {},
"default_type_name": "Review"
}
},
{
"kind": "REST",
"name": "deleteReview",
"internal": false,
"root_fields": [
{
"type": "Mutation",
"fields": [
"deletReview"
]
}
],
"config": {
"url": "http://localhost:4001/reviews/{{.arguments.reviewId}}",
"method": "DELETE",
"body": "",
"headers": {},
"default_type_name": "String"
}
}
]
},
"type_field_configurations": [],
"execution_mode": "executionEngine",
"proxy": {
"auth_headers": {}
},
"subgraph": {
"sdl": ""
},
"supergraph": {
"subgraphs": [],
"merged_sdl": "",
"global_headers": {},
"disable_query_batching": false
},
"version": "2",
"playground": {
"enabled": false,
"path": ""
},
"last_schema_update": "2022-05-18T17:59:27.029+02:00"
}```