Closed heymartinadams closed 5 years ago
Hey Martin, sorry if the docs don't make this clear. queryType
and mutationType
are shortcuts for:
const Query = objectType({
name: 'Query',
// ...
})
and
const Mutation = objectType({
name: 'Mutation',
// ...
})
Blog Post Introducing GraphQL Nexus: Code-First GraphQL Server Development
Describe the content issue In the blog post linked above (a follow-up blog post to #105) it says:
Yet the official Nexus repo defines a query and mutation like this:
So confused: which is which?