cd service1
make run
npm install -g wgc@latest
wgc router compose -i graph.yaml -o config.json
-
use config.json for run router
-
run query
query Test {
test(input: {
filter: {
# empty
}
}) {
a
b
}
}
- view result
{
"errors": [
{
"message": "Variable \"$a\" got invalid value {\"filter\":{}}; Field \"b\" of required type \"Int!\" was not provided."
}
],
"data": null
}