File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ Now let's use this data to reimplement the `Query.drafts` resolver from the prev
63
63
64
64
``` diff
65
65
schema.queryType({
66
- name : 'Query',
66
+ type : 'Query',
67
67
definition(t) {
68
68
t.list.field('drafts', {
69
69
type: 'Post',
@@ -101,7 +101,7 @@ As before we will take the colocation approach.
101
101
// ...
102
102
103
103
schema .extendType ({
104
- name : ' Mutation' ,
104
+ type : ' Mutation' ,
105
105
definition(t ) {
106
106
t .field (' createDraft' , {
107
107
type: ' Post' ,
@@ -135,7 +135,7 @@ Let's revise our implementation with GraphQL arguments.
135
135
136
136
``` diff
137
137
schema.extendType({
138
- name : 'Mutation',
138
+ type : 'Mutation',
139
139
definition(t) {
140
140
t.field('createDraft', {
141
141
type: 'Post',
@@ -226,7 +226,7 @@ type Mutation {
226
226
import { schema } from ' nexus'
227
227
228
228
schema .extendType ({
229
- name : ' Query' ,
229
+ type : ' Query' ,
230
230
definition(t ) {
231
231
// ...
232
232
t .list .field (' posts' , {
You can’t perform that action at this time.
0 commit comments