Open mbroecheler opened 1 year ago
Would love to except it is against the graphql spec. We'd have to put in a no-op function as a placeholder.
https://spec.graphql.org/June2018/#sec-Root-Operation-Types
The query root operation type must be provided and must be an Object type.
And later
An Object type must define one or more fields
Fixed in #447
Reopening. A refactor removed this feature and it needs to be reintroduced.
Right now, the compiler and servlet expect a query type and at least one field inside the type in order to run. This means users cannot define a schema that only accepts mutations.