Skip to content

Commit 27043bb

Browse files
authored
chore(docs): fix typo in tutorial (#977)
1 parent ebb72c2 commit 27043bb

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/tutorial/chapter-3-adding-mutations-to-your-api.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ Now let's use this data to reimplement the `Query.drafts` resolver from the prev
6363

6464
```diff
6565
schema.queryType({
66-
name: 'Query',
66+
type: 'Query',
6767
definition(t) {
6868
t.list.field('drafts', {
6969
type: 'Post',
@@ -101,7 +101,7 @@ As before we will take the colocation approach.
101101
// ...
102102

103103
schema.extendType({
104-
name: 'Mutation',
104+
type: 'Mutation',
105105
definition(t) {
106106
t.field('createDraft', {
107107
type: 'Post',
@@ -135,7 +135,7 @@ Let's revise our implementation with GraphQL arguments.
135135

136136
```diff
137137
schema.extendType({
138-
name: 'Mutation',
138+
type: 'Mutation',
139139
definition(t) {
140140
t.field('createDraft', {
141141
type: 'Post',
@@ -226,7 +226,7 @@ type Mutation {
226226
import { schema } from 'nexus'
227227

228228
schema.extendType({
229-
name: 'Query',
229+
type: 'Query',
230230
definition(t) {
231231
// ...
232232
t.list.field('posts', {

0 commit comments

Comments
 (0)