Skip to content

Commit

Permalink
chore(docs): Nexus Getting started: missing type in queryType (#995)
Browse files Browse the repository at this point in the history
queryType is missing type field. TypeScript would throw error and not compile.
  • Loading branch information
ohashioji authored Oct 27, 2021
1 parent 02015ed commit 703d559
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions docs/content/010-getting-started/04-why-nexus.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ const Post = objectType({
const Query = queryType({
definition(t) {
t.list.field('posts', {
type: "Post",
resolve: () => [
{
id: '1',
Expand Down

0 comments on commit 703d559

Please sign in to comment.