File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,6 @@ export const Kind = Object.freeze({
18
18
DOCUMENT : 'Document' ,
19
19
OPERATION_DEFINITION : 'OperationDefinition' ,
20
20
VARIABLE_DEFINITION : 'VariableDefinition' ,
21
- VARIABLE : 'Variable' ,
22
21
SELECTION_SET : 'SelectionSet' ,
23
22
FIELD : 'Field' ,
24
23
ARGUMENT : 'Argument' ,
@@ -29,6 +28,7 @@ export const Kind = Object.freeze({
29
28
FRAGMENT_DEFINITION : 'FragmentDefinition' ,
30
29
31
30
// Values
31
+ VARIABLE : 'Variable' ,
32
32
INT : 'IntValue' ,
33
33
FLOAT : 'FloatValue' ,
34
34
STRING : 'StringValue' ,
Original file line number Diff line number Diff line change @@ -35,15 +35,15 @@ export function isSelectionNode(node: ASTNode): boolean %checks {
35
35
36
36
export function isValueNode ( node : ASTNode ) : boolean % checks {
37
37
return (
38
+ node . kind === Kind . VARIABLE ||
38
39
node . kind === Kind . INT ||
39
40
node . kind === Kind . FLOAT ||
40
41
node . kind === Kind . STRING ||
41
42
node . kind === Kind . BOOLEAN ||
42
43
node . kind === Kind . NULL ||
43
44
node . kind === Kind . ENUM ||
44
45
node . kind === Kind . LIST ||
45
- node . kind === Kind . OBJECT ||
46
- node . kind === Kind . OBJECT_FIELD
46
+ node . kind === Kind . OBJECT
47
47
) ;
48
48
}
49
49
You can’t perform that action at this time.
0 commit comments