|
| 1 | +// This is a copy of graphql/language/kinds so that we don't need to rely on internal modules |
| 2 | +// (they tend to break: https://github.com/graphql/graphql-js/issues/1221) |
| 3 | + |
| 4 | +/** |
| 5 | + * Copyright (c) 2015-present, Facebook, Inc. |
| 6 | + * |
| 7 | + * This source code is licensed under the MIT license found in the |
| 8 | + * LICENSE file in the root directory of this source tree. |
| 9 | + * |
| 10 | + * @flow |
| 11 | + */ |
| 12 | + |
| 13 | +// Name |
| 14 | + |
| 15 | +export const NAME: 'Name' = 'Name'; |
| 16 | + |
| 17 | +// Document |
| 18 | + |
| 19 | +export const DOCUMENT: 'Document' = 'Document'; |
| 20 | +export const OPERATION_DEFINITION: 'OperationDefinition' = 'OperationDefinition'; |
| 21 | +export const VARIABLE_DEFINITION: 'VariableDefinition' = 'VariableDefinition'; |
| 22 | +export const VARIABLE: 'Variable' = 'Variable'; |
| 23 | +export const SELECTION_SET: 'SelectionSet' = 'SelectionSet'; |
| 24 | +export const FIELD: 'Field' = 'Field'; |
| 25 | +export const ARGUMENT: 'Argument' = 'Argument'; |
| 26 | + |
| 27 | +// Fragments |
| 28 | + |
| 29 | +export const FRAGMENT_SPREAD: 'FragmentSpread' = 'FragmentSpread'; |
| 30 | +export const INLINE_FRAGMENT: 'InlineFragment' = 'InlineFragment'; |
| 31 | +export const FRAGMENT_DEFINITION: 'FragmentDefinition' = 'FragmentDefinition'; |
| 32 | + |
| 33 | +// Values |
| 34 | + |
| 35 | +export const INT: 'IntValue' = 'IntValue'; |
| 36 | +export const FLOAT: 'FloatValue' = 'FloatValue'; |
| 37 | +export const STRING: 'StringValue' = 'StringValue'; |
| 38 | +export const BOOLEAN: 'BooleanValue' = 'BooleanValue'; |
| 39 | +export const NULL: 'NullValue' = 'NullValue'; |
| 40 | +export const ENUM: 'EnumValue' = 'EnumValue'; |
| 41 | +export const LIST: 'ListValue' = 'ListValue'; |
| 42 | +export const OBJECT: 'ObjectValue' = 'ObjectValue'; |
| 43 | +export const OBJECT_FIELD: 'ObjectField' = 'ObjectField'; |
| 44 | + |
| 45 | +// Directives |
| 46 | + |
| 47 | +export const DIRECTIVE: 'Directive' = 'Directive'; |
| 48 | + |
| 49 | +// Types |
| 50 | + |
| 51 | +export const NAMED_TYPE: 'NamedType' = 'NamedType'; |
| 52 | +export const LIST_TYPE: 'ListType' = 'ListType'; |
| 53 | +export const NON_NULL_TYPE: 'NonNullType' = 'NonNullType'; |
| 54 | + |
| 55 | +// Type System Definitions |
| 56 | + |
| 57 | +export const SCHEMA_DEFINITION: 'SchemaDefinition' = 'SchemaDefinition'; |
| 58 | +export const OPERATION_TYPE_DEFINITION: 'OperationTypeDefinition' = 'OperationTypeDefinition'; |
| 59 | + |
| 60 | +// Type Definitions |
| 61 | + |
| 62 | +export const SCALAR_TYPE_DEFINITION: 'ScalarTypeDefinition' = 'ScalarTypeDefinition'; |
| 63 | +export const OBJECT_TYPE_DEFINITION: 'ObjectTypeDefinition' = 'ObjectTypeDefinition'; |
| 64 | +export const FIELD_DEFINITION: 'FieldDefinition' = 'FieldDefinition'; |
| 65 | +export const INPUT_VALUE_DEFINITION: 'InputValueDefinition' = 'InputValueDefinition'; |
| 66 | +export const INTERFACE_TYPE_DEFINITION: 'InterfaceTypeDefinition' = 'InterfaceTypeDefinition'; |
| 67 | +export const UNION_TYPE_DEFINITION: 'UnionTypeDefinition' = 'UnionTypeDefinition'; |
| 68 | +export const ENUM_TYPE_DEFINITION: 'EnumTypeDefinition' = 'EnumTypeDefinition'; |
| 69 | +export const ENUM_VALUE_DEFINITION: 'EnumValueDefinition' = 'EnumValueDefinition'; |
| 70 | +export const INPUT_OBJECT_TYPE_DEFINITION: 'InputObjectTypeDefinition' = 'InputObjectTypeDefinition'; |
| 71 | + |
| 72 | +// Type Extensions |
| 73 | + |
| 74 | +export const TYPE_EXTENSION_DEFINITION: 'TypeExtensionDefinition' = 'TypeExtensionDefinition'; |
| 75 | + |
| 76 | +// Directive Definitions |
| 77 | + |
| 78 | +export const DIRECTIVE_DEFINITION: 'DirectiveDefinition' = 'DirectiveDefinition'; |
0 commit comments