@@ -129,8 +129,11 @@ test('creates three query fields per data type', () => {
129
129
expect ( queries [ 'Post' ] . type . name ) . toEqual ( PostType . name ) ;
130
130
expect ( queries [ 'Post' ] . args ) . toEqual ( [
131
131
{
132
+ astNode : undefined ,
132
133
defaultValue : undefined ,
133
- description : null ,
134
+ description : undefined ,
135
+ deprecationReason : undefined ,
136
+ extensions : undefined ,
134
137
name : 'id' ,
135
138
type : new GraphQLNonNull ( GraphQLID ) ,
136
139
} ,
@@ -151,8 +154,11 @@ test('creates three query fields per data type', () => {
151
154
expect ( queries [ 'User' ] . type . name ) . toEqual ( UserType . name ) ;
152
155
expect ( queries [ 'User' ] . args ) . toEqual ( [
153
156
{
157
+ astNode : undefined ,
154
158
defaultValue : undefined ,
155
- description : null ,
159
+ description : undefined ,
160
+ deprecationReason : undefined ,
161
+ extensions : undefined ,
156
162
name : 'id' ,
157
163
type : new GraphQLNonNull ( GraphQLID ) ,
158
164
} ,
@@ -178,87 +184,123 @@ test('creates three mutation fields per data type', () => {
178
184
{
179
185
name : 'title' ,
180
186
type : new GraphQLNonNull ( GraphQLString ) ,
187
+ astNode : undefined ,
181
188
defaultValue : undefined ,
182
- description : null ,
189
+ description : undefined ,
190
+ deprecationReason : undefined ,
191
+ extensions : undefined ,
183
192
} ,
184
193
{
185
194
name : 'views' ,
186
195
type : new GraphQLNonNull ( GraphQLInt ) ,
196
+ astNode : undefined ,
187
197
defaultValue : undefined ,
188
- description : null ,
198
+ description : undefined ,
199
+ deprecationReason : undefined ,
200
+ extensions : undefined ,
189
201
} ,
190
202
{
191
203
name : 'user_id' ,
192
204
type : new GraphQLNonNull ( GraphQLID ) ,
205
+ astNode : undefined ,
193
206
defaultValue : undefined ,
194
- description : null ,
207
+ description : undefined ,
208
+ deprecationReason : undefined ,
209
+ extensions : undefined ,
195
210
} ,
196
211
] ) ;
197
212
expect ( mutations [ 'updatePost' ] . type . name ) . toEqual ( PostType . name ) ;
198
213
expect ( mutations [ 'updatePost' ] . args ) . toEqual ( [
199
214
{
200
215
name : 'id' ,
201
216
type : new GraphQLNonNull ( GraphQLID ) ,
217
+ astNode : undefined ,
202
218
defaultValue : undefined ,
203
- description : null ,
219
+ description : undefined ,
220
+ deprecationReason : undefined ,
221
+ extensions : undefined ,
204
222
} ,
205
223
{
206
224
name : 'title' ,
207
225
type : GraphQLString ,
226
+ astNode : undefined ,
208
227
defaultValue : undefined ,
209
- description : null ,
228
+ description : undefined ,
229
+ deprecationReason : undefined ,
230
+ extensions : undefined ,
210
231
} ,
211
232
{
212
233
name : 'views' ,
213
234
type : GraphQLInt ,
235
+ astNode : undefined ,
214
236
defaultValue : undefined ,
215
- description : null ,
237
+ description : undefined ,
238
+ deprecationReason : undefined ,
239
+ extensions : undefined ,
216
240
} ,
217
241
{
218
242
name : 'user_id' ,
219
243
type : GraphQLID ,
244
+ astNode : undefined ,
220
245
defaultValue : undefined ,
221
- description : null ,
246
+ description : undefined ,
247
+ deprecationReason : undefined ,
248
+ extensions : undefined ,
222
249
} ,
223
250
] ) ;
224
251
expect ( mutations [ 'removePost' ] . type . name ) . toEqual ( PostType . name ) ;
225
252
expect ( mutations [ 'removePost' ] . args ) . toEqual ( [
226
253
{
227
254
name : 'id' ,
228
255
type : new GraphQLNonNull ( GraphQLID ) ,
256
+ astNode : undefined ,
229
257
defaultValue : undefined ,
230
- description : null ,
258
+ description : undefined ,
259
+ deprecationReason : undefined ,
260
+ extensions : undefined ,
231
261
} ,
232
262
] ) ;
233
263
expect ( mutations [ 'createUser' ] . type . name ) . toEqual ( UserType . name ) ;
234
264
expect ( mutations [ 'createUser' ] . args ) . toEqual ( [
235
265
{
236
266
name : 'name' ,
237
267
type : new GraphQLNonNull ( GraphQLString ) ,
268
+ astNode : undefined ,
238
269
defaultValue : undefined ,
239
- description : null ,
270
+ description : undefined ,
271
+ deprecationReason : undefined ,
272
+ extensions : undefined ,
240
273
} ,
241
274
] ) ;
242
275
expect ( mutations [ 'updateUser' ] . type . name ) . toEqual ( UserType . name ) ;
243
276
expect ( mutations [ 'updateUser' ] . args ) . toEqual ( [
244
277
{
245
278
name : 'id' ,
246
279
type : new GraphQLNonNull ( GraphQLID ) ,
280
+ astNode : undefined ,
247
281
defaultValue : undefined ,
248
- description : null ,
282
+ description : undefined ,
283
+ deprecationReason : undefined ,
284
+ extensions : undefined ,
249
285
} ,
250
286
{
251
287
name : 'name' ,
252
288
type : GraphQLString ,
289
+ astNode : undefined ,
253
290
defaultValue : undefined ,
254
- description : null ,
291
+ description : undefined ,
292
+ deprecationReason : undefined ,
293
+ extensions : undefined ,
255
294
} ,
256
295
] ) ;
257
296
expect ( mutations [ 'removeUser' ] . type . name ) . toEqual ( UserType . name ) ;
258
297
expect ( mutations [ 'removeUser' ] . args ) . toEqual ( [
259
298
{
299
+ astNode : undefined ,
260
300
defaultValue : undefined ,
261
- description : null ,
301
+ description : undefined ,
302
+ deprecationReason : undefined ,
303
+ extensions : undefined ,
262
304
name : 'id' ,
263
305
type : new GraphQLNonNull ( GraphQLID ) ,
264
306
} ,
0 commit comments