@luvio/graphql-parser 0.99.0 → 0.99.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,403 @@
1
+ {
2
+ "kind": "Document",
3
+ "definitions": [
4
+ {
5
+ "kind": "OperationDefinition",
6
+ "operation": "query",
7
+ "name": {
8
+ "kind": "Name",
9
+ "value": "GetUser",
10
+ "loc": {
11
+ "start": 134,
12
+ "end": 141
13
+ }
14
+ },
15
+ "variableDefinitions": [
16
+ {
17
+ "kind": "VariableDefinition",
18
+ "variable": {
19
+ "kind": "Variable",
20
+ "name": {
21
+ "kind": "Name",
22
+ "value": "userId",
23
+ "loc": {
24
+ "start": 143,
25
+ "end": 149
26
+ }
27
+ },
28
+ "loc": {
29
+ "start": 142,
30
+ "end": 149
31
+ }
32
+ },
33
+ "type": {
34
+ "kind": "NonNullType",
35
+ "type": {
36
+ "kind": "NamedType",
37
+ "name": {
38
+ "kind": "Name",
39
+ "value": "ID",
40
+ "loc": {
41
+ "start": 151,
42
+ "end": 153
43
+ }
44
+ },
45
+ "loc": {
46
+ "start": 151,
47
+ "end": 153
48
+ }
49
+ },
50
+ "loc": {
51
+ "start": 151,
52
+ "end": 154
53
+ }
54
+ },
55
+ "directives": [],
56
+ "loc": {
57
+ "start": 142,
58
+ "end": 154
59
+ }
60
+ }
61
+ ],
62
+ "directives": [],
63
+ "selectionSet": {
64
+ "kind": "SelectionSet",
65
+ "selections": [
66
+ {
67
+ "kind": "Field",
68
+ "name": {
69
+ "kind": "Name",
70
+ "value": "user",
71
+ "loc": {
72
+ "start": 160,
73
+ "end": 164
74
+ }
75
+ },
76
+ "arguments": [
77
+ {
78
+ "kind": "Argument",
79
+ "name": {
80
+ "kind": "Name",
81
+ "value": "id",
82
+ "loc": {
83
+ "start": 165,
84
+ "end": 167
85
+ }
86
+ },
87
+ "value": {
88
+ "kind": "Variable",
89
+ "name": {
90
+ "kind": "Name",
91
+ "value": "userId",
92
+ "loc": {
93
+ "start": 170,
94
+ "end": 176
95
+ }
96
+ },
97
+ "loc": {
98
+ "start": 169,
99
+ "end": 176
100
+ }
101
+ },
102
+ "loc": {
103
+ "start": 165,
104
+ "end": 176
105
+ }
106
+ }
107
+ ],
108
+ "directives": [],
109
+ "selectionSet": {
110
+ "kind": "SelectionSet",
111
+ "selections": [
112
+ {
113
+ "kind": "Field",
114
+ "name": {
115
+ "kind": "Name",
116
+ "value": "id",
117
+ "loc": {
118
+ "start": 184,
119
+ "end": 186
120
+ }
121
+ },
122
+ "arguments": [],
123
+ "directives": [],
124
+ "loc": {
125
+ "start": 184,
126
+ "end": 186
127
+ }
128
+ },
129
+ {
130
+ "kind": "Field",
131
+ "name": {
132
+ "kind": "Name",
133
+ "value": "name",
134
+ "loc": {
135
+ "start": 192,
136
+ "end": 196
137
+ }
138
+ },
139
+ "arguments": [],
140
+ "directives": [],
141
+ "loc": {
142
+ "start": 192,
143
+ "end": 196
144
+ }
145
+ },
146
+ {
147
+ "kind": "Field",
148
+ "name": {
149
+ "kind": "Name",
150
+ "value": "isViewerFriend",
151
+ "loc": {
152
+ "start": 202,
153
+ "end": 216
154
+ }
155
+ },
156
+ "arguments": [],
157
+ "directives": [],
158
+ "loc": {
159
+ "start": 202,
160
+ "end": 216
161
+ }
162
+ },
163
+ {
164
+ "kind": "Field",
165
+ "name": {
166
+ "kind": "Name",
167
+ "value": "profilePicture",
168
+ "loc": {
169
+ "start": 222,
170
+ "end": 236
171
+ }
172
+ },
173
+ "arguments": [
174
+ {
175
+ "kind": "Argument",
176
+ "name": {
177
+ "kind": "Name",
178
+ "value": "size",
179
+ "loc": {
180
+ "start": 237,
181
+ "end": 241
182
+ }
183
+ },
184
+ "value": {
185
+ "kind": "IntValue",
186
+ "value": "50",
187
+ "loc": {
188
+ "start": 243,
189
+ "end": 245
190
+ }
191
+ },
192
+ "loc": {
193
+ "start": 237,
194
+ "end": 245
195
+ }
196
+ }
197
+ ],
198
+ "directives": [],
199
+ "selectionSet": {
200
+ "kind": "SelectionSet",
201
+ "selections": [
202
+ {
203
+ "kind": "FragmentSpread",
204
+ "name": {
205
+ "kind": "Name",
206
+ "value": "PictureFragment",
207
+ "loc": {
208
+ "start": 259,
209
+ "end": 274
210
+ }
211
+ },
212
+ "directives": [],
213
+ "loc": {
214
+ "start": 256,
215
+ "end": 274
216
+ }
217
+ },
218
+ {
219
+ "kind": "FragmentSpread",
220
+ "name": {
221
+ "kind": "Name",
222
+ "value": "PictureFragmentHeight",
223
+ "loc": {
224
+ "start": 284,
225
+ "end": 305
226
+ }
227
+ },
228
+ "directives": [],
229
+ "loc": {
230
+ "start": 281,
231
+ "end": 305
232
+ }
233
+ }
234
+ ],
235
+ "loc": {
236
+ "start": 248,
237
+ "end": 311
238
+ }
239
+ },
240
+ "loc": {
241
+ "start": 222,
242
+ "end": 311
243
+ }
244
+ }
245
+ ],
246
+ "loc": {
247
+ "start": 178,
248
+ "end": 315
249
+ }
250
+ },
251
+ "loc": {
252
+ "start": 160,
253
+ "end": 315
254
+ }
255
+ }
256
+ ],
257
+ "loc": {
258
+ "start": 156,
259
+ "end": 317
260
+ }
261
+ },
262
+ "loc": {
263
+ "start": 128,
264
+ "end": 317
265
+ }
266
+ },
267
+ {
268
+ "kind": "FragmentDefinition",
269
+ "name": {
270
+ "kind": "Name",
271
+ "value": "PictureFragment",
272
+ "loc": {
273
+ "start": 328,
274
+ "end": 343
275
+ }
276
+ },
277
+ "typeCondition": {
278
+ "kind": "NamedType",
279
+ "name": {
280
+ "kind": "Name",
281
+ "value": "Picture",
282
+ "loc": {
283
+ "start": 347,
284
+ "end": 354
285
+ }
286
+ },
287
+ "loc": {
288
+ "start": 347,
289
+ "end": 354
290
+ }
291
+ },
292
+ "directives": [],
293
+ "selectionSet": {
294
+ "kind": "SelectionSet",
295
+ "selections": [
296
+ {
297
+ "kind": "Field",
298
+ "name": {
299
+ "kind": "Name",
300
+ "value": "uri",
301
+ "loc": {
302
+ "start": 359,
303
+ "end": 362
304
+ }
305
+ },
306
+ "arguments": [],
307
+ "directives": [],
308
+ "loc": {
309
+ "start": 359,
310
+ "end": 362
311
+ }
312
+ },
313
+ {
314
+ "kind": "Field",
315
+ "name": {
316
+ "kind": "Name",
317
+ "value": "width",
318
+ "loc": {
319
+ "start": 366,
320
+ "end": 371
321
+ }
322
+ },
323
+ "arguments": [],
324
+ "directives": [],
325
+ "loc": {
326
+ "start": 366,
327
+ "end": 371
328
+ }
329
+ }
330
+ ],
331
+ "loc": {
332
+ "start": 355,
333
+ "end": 373
334
+ }
335
+ },
336
+ "loc": {
337
+ "start": 319,
338
+ "end": 373
339
+ }
340
+ },
341
+ {
342
+ "kind": "FragmentDefinition",
343
+ "name": {
344
+ "kind": "Name",
345
+ "value": "PictureFragmentHeight",
346
+ "loc": {
347
+ "start": 384,
348
+ "end": 405
349
+ }
350
+ },
351
+ "typeCondition": {
352
+ "kind": "NamedType",
353
+ "name": {
354
+ "kind": "Name",
355
+ "value": "Picture",
356
+ "loc": {
357
+ "start": 409,
358
+ "end": 416
359
+ }
360
+ },
361
+ "loc": {
362
+ "start": 409,
363
+ "end": 416
364
+ }
365
+ },
366
+ "directives": [],
367
+ "selectionSet": {
368
+ "kind": "SelectionSet",
369
+ "selections": [
370
+ {
371
+ "kind": "Field",
372
+ "name": {
373
+ "kind": "Name",
374
+ "value": "height",
375
+ "loc": {
376
+ "start": 421,
377
+ "end": 427
378
+ }
379
+ },
380
+ "arguments": [],
381
+ "directives": [],
382
+ "loc": {
383
+ "start": 421,
384
+ "end": 427
385
+ }
386
+ }
387
+ ],
388
+ "loc": {
389
+ "start": 417,
390
+ "end": 429
391
+ }
392
+ },
393
+ "loc": {
394
+ "start": 375,
395
+ "end": 429
396
+ }
397
+ }
398
+ ],
399
+ "loc": {
400
+ "start": 0,
401
+ "end": 430
402
+ }
403
+ }
@@ -0,0 +1,147 @@
1
+ {
2
+ "kind": "Document",
3
+ "definitions": [
4
+ {
5
+ "kind": "OperationDefinition",
6
+ "operation": "query",
7
+ "name": { "kind": "Name", "value": "GetUser" },
8
+ "variableDefinitions": [
9
+ {
10
+ "kind": "VariableDefinition",
11
+ "variable": {
12
+ "kind": "Variable",
13
+ "name": { "kind": "Name", "value": "userId" }
14
+ },
15
+ "type": {
16
+ "kind": "NonNullType",
17
+ "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "ID" } }
18
+ },
19
+ "directives": []
20
+ }
21
+ ],
22
+ "directives": [],
23
+ "selectionSet": {
24
+ "kind": "SelectionSet",
25
+ "selections": [
26
+ {
27
+ "kind": "Field",
28
+ "name": { "kind": "Name", "value": "user" },
29
+ "arguments": [
30
+ {
31
+ "kind": "Argument",
32
+ "name": { "kind": "Name", "value": "id" },
33
+ "value": {
34
+ "kind": "Variable",
35
+ "name": { "kind": "Name", "value": "userId" }
36
+ }
37
+ }
38
+ ],
39
+ "directives": [],
40
+ "selectionSet": {
41
+ "kind": "SelectionSet",
42
+ "selections": [
43
+ {
44
+ "kind": "Field",
45
+ "name": { "kind": "Name", "value": "id" },
46
+ "arguments": [],
47
+ "directives": []
48
+ },
49
+ {
50
+ "kind": "Field",
51
+ "name": { "kind": "Name", "value": "name" },
52
+ "arguments": [],
53
+ "directives": []
54
+ },
55
+ {
56
+ "kind": "Field",
57
+ "name": { "kind": "Name", "value": "isViewerFriend" },
58
+ "arguments": [],
59
+ "directives": []
60
+ },
61
+ {
62
+ "kind": "Field",
63
+ "name": { "kind": "Name", "value": "profilePicture" },
64
+ "arguments": [
65
+ {
66
+ "kind": "Argument",
67
+ "name": { "kind": "Name", "value": "size" },
68
+ "value": { "kind": "IntValue", "value": "50" }
69
+ }
70
+ ],
71
+ "directives": [],
72
+ "selectionSet": {
73
+ "kind": "SelectionSet",
74
+ "selections": [
75
+ {
76
+ "kind": "FragmentSpread",
77
+ "name": {
78
+ "kind": "Name",
79
+ "value": "PictureFragment"
80
+ },
81
+ "directives": []
82
+ },
83
+ {
84
+ "kind": "FragmentSpread",
85
+ "name": {
86
+ "kind": "Name",
87
+ "value": "PictureFragmentHeight"
88
+ },
89
+ "directives": []
90
+ }
91
+ ]
92
+ }
93
+ }
94
+ ]
95
+ }
96
+ }
97
+ ]
98
+ }
99
+ },
100
+ {
101
+ "kind": "FragmentDefinition",
102
+ "name": { "kind": "Name", "value": "PictureFragment" },
103
+ "typeCondition": {
104
+ "kind": "NamedType",
105
+ "name": { "kind": "Name", "value": "Picture" }
106
+ },
107
+ "directives": [],
108
+ "selectionSet": {
109
+ "kind": "SelectionSet",
110
+ "selections": [
111
+ {
112
+ "kind": "Field",
113
+ "name": { "kind": "Name", "value": "uri" },
114
+ "arguments": [],
115
+ "directives": []
116
+ },
117
+ {
118
+ "kind": "Field",
119
+ "name": { "kind": "Name", "value": "width" },
120
+ "arguments": [],
121
+ "directives": []
122
+ }
123
+ ]
124
+ }
125
+ },
126
+ {
127
+ "kind": "FragmentDefinition",
128
+ "name": { "kind": "Name", "value": "PictureFragmentHeight" },
129
+ "typeCondition": {
130
+ "kind": "NamedType",
131
+ "name": { "kind": "Name", "value": "Picture" }
132
+ },
133
+ "directives": [],
134
+ "selectionSet": {
135
+ "kind": "SelectionSet",
136
+ "selections": [
137
+ {
138
+ "kind": "Field",
139
+ "name": { "kind": "Name", "value": "height" },
140
+ "arguments": [],
141
+ "directives": []
142
+ }
143
+ ]
144
+ }
145
+ }
146
+ ]
147
+ }