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