When writing custom query, there is no need to add new GraphQLObjectType, only the fields should be passed in. const schema = mooseql([Category], { query: { field1, field2 } }) Could you add an example in the documentation?
When writing custom query, there is no need to add new GraphQLObjectType, only the fields should be passed in.
const schema = mooseql([Category], {
query: {
field1,
field2
}
})
Could you add an example in the documentation?