@luvio/graphql-parser 0.125.0 → 0.126.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.
- package/package.json +5 -3
- package/babel.config.js +0 -1
- package/jest.config.js +0 -8
- package/project.json +0 -7
- package/rollup.config.js +0 -24
- package/scripts/cli.mjs +0 -18
- package/src/__tests__/ast.json +0 -403
- package/src/__tests__/ast.spec.ts +0 -109
- package/src/__tests__/astNoLoc.json +0 -147
- package/src/__tests__/gql.spec.ts +0 -665
- package/src/__tests__/main.spec.ts +0 -651
- package/src/__tests__/metaschema.spec.ts +0 -230
- package/src/__tests__/type-node.spec.ts +0 -82
- package/src/argument-node.ts +0 -18
- package/src/ast.ts +0 -200
- package/src/constants.ts +0 -14
- package/src/directive-node.ts +0 -36
- package/src/document.ts +0 -29
- package/src/field-node.ts +0 -72
- package/src/fragment-spread-node.ts +0 -28
- package/src/fragment.ts +0 -46
- package/src/gql.ts +0 -222
- package/src/inline-fragment-node.ts +0 -31
- package/src/main.ts +0 -134
- package/src/metaschema.ts +0 -162
- package/src/operation/index.ts +0 -12
- package/src/operation/query/index.ts +0 -78
- package/src/type-node.ts +0 -40
- package/src/util/language.ts +0 -10
- package/src/value-node.ts +0 -71
- package/src/variable-definition.ts +0 -37
- package/src/visitor.ts +0 -63
- package/tsconfig.json +0 -9
|
@@ -1,147 +0,0 @@
|
|
|
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
|
-
}
|