This is an experimental project.
I want to figure out how to generate the schema and all related wiring in Java code.
Works like a charm.
The base schema is only
# The base of the application.
type Query {
# A greeting is returned
greeting: String
}
The final schema allows you to do
query {
greeting
sayHello
getVersion(thing: "S") {
url
commit
}
}
which in this case returns
{
"data": {
"greeting": "Hello World",
"sayHello": "Just say hello",
"getVersion": {
"url": "Fetch: url()",
"commit": "Fetch: commit()"
}
}
}
Thanks to Brad Baker https://github.com/bbakerman :