-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Do not import internal graphql/language/kinds module
They are not part of the official API and it broke in 0.13: graphql/graphql-js#1221
- Loading branch information
Showing
47 changed files
with
139 additions
and
47 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
...preparation/ast-transformation-modules/add-filter-arguments-to-fields-transformer.spec.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
.../schema/preparation/ast-transformation-modules/add-filter-input-types-transformer.spec.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
spec/schema/preparation/ast-transformation-modules/add-order-by-enums-transformer.spec.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...reparation/ast-transformation-modules/add-orderby-arguments-to-fields-transformer.spec.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
spec/schema/preparation/ast-transformation-modules/add-root-query-type-transformer.spec.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
spec/schema/preparation/ast-transformation-modules/add-root-schema-transformer.spec.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
spec/schema/preparation/ast-transformation-modules/non-nullable-lists-transformer.spec.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
// This is a copy of graphql/language/kinds so that we don't need to rely on internal modules | ||
// (they tend to break: https://github.com/graphql/graphql-js/issues/1221) | ||
|
||
/** | ||
* Copyright (c) 2015-present, Facebook, Inc. | ||
* | ||
* This source code is licensed under the MIT license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
* | ||
* @flow | ||
*/ | ||
|
||
// Name | ||
|
||
export const NAME: 'Name' = 'Name'; | ||
|
||
// Document | ||
|
||
export const DOCUMENT: 'Document' = 'Document'; | ||
export const OPERATION_DEFINITION: 'OperationDefinition' = 'OperationDefinition'; | ||
export const VARIABLE_DEFINITION: 'VariableDefinition' = 'VariableDefinition'; | ||
export const VARIABLE: 'Variable' = 'Variable'; | ||
export const SELECTION_SET: 'SelectionSet' = 'SelectionSet'; | ||
export const FIELD: 'Field' = 'Field'; | ||
export const ARGUMENT: 'Argument' = 'Argument'; | ||
|
||
// Fragments | ||
|
||
export const FRAGMENT_SPREAD: 'FragmentSpread' = 'FragmentSpread'; | ||
export const INLINE_FRAGMENT: 'InlineFragment' = 'InlineFragment'; | ||
export const FRAGMENT_DEFINITION: 'FragmentDefinition' = 'FragmentDefinition'; | ||
|
||
// Values | ||
|
||
export const INT: 'IntValue' = 'IntValue'; | ||
export const FLOAT: 'FloatValue' = 'FloatValue'; | ||
export const STRING: 'StringValue' = 'StringValue'; | ||
export const BOOLEAN: 'BooleanValue' = 'BooleanValue'; | ||
export const NULL: 'NullValue' = 'NullValue'; | ||
export const ENUM: 'EnumValue' = 'EnumValue'; | ||
export const LIST: 'ListValue' = 'ListValue'; | ||
export const OBJECT: 'ObjectValue' = 'ObjectValue'; | ||
export const OBJECT_FIELD: 'ObjectField' = 'ObjectField'; | ||
|
||
// Directives | ||
|
||
export const DIRECTIVE: 'Directive' = 'Directive'; | ||
|
||
// Types | ||
|
||
export const NAMED_TYPE: 'NamedType' = 'NamedType'; | ||
export const LIST_TYPE: 'ListType' = 'ListType'; | ||
export const NON_NULL_TYPE: 'NonNullType' = 'NonNullType'; | ||
|
||
// Type System Definitions | ||
|
||
export const SCHEMA_DEFINITION: 'SchemaDefinition' = 'SchemaDefinition'; | ||
export const OPERATION_TYPE_DEFINITION: 'OperationTypeDefinition' = 'OperationTypeDefinition'; | ||
|
||
// Type Definitions | ||
|
||
export const SCALAR_TYPE_DEFINITION: 'ScalarTypeDefinition' = 'ScalarTypeDefinition'; | ||
export const OBJECT_TYPE_DEFINITION: 'ObjectTypeDefinition' = 'ObjectTypeDefinition'; | ||
export const FIELD_DEFINITION: 'FieldDefinition' = 'FieldDefinition'; | ||
export const INPUT_VALUE_DEFINITION: 'InputValueDefinition' = 'InputValueDefinition'; | ||
export const INTERFACE_TYPE_DEFINITION: 'InterfaceTypeDefinition' = 'InterfaceTypeDefinition'; | ||
export const UNION_TYPE_DEFINITION: 'UnionTypeDefinition' = 'UnionTypeDefinition'; | ||
export const ENUM_TYPE_DEFINITION: 'EnumTypeDefinition' = 'EnumTypeDefinition'; | ||
export const ENUM_VALUE_DEFINITION: 'EnumValueDefinition' = 'EnumValueDefinition'; | ||
export const INPUT_OBJECT_TYPE_DEFINITION: 'InputObjectTypeDefinition' = 'InputObjectTypeDefinition'; | ||
|
||
// Type Extensions | ||
|
||
export const TYPE_EXTENSION_DEFINITION: 'TypeExtensionDefinition' = 'TypeExtensionDefinition'; | ||
|
||
// Directive Definitions | ||
|
||
export const DIRECTIVE_DEFINITION: 'DirectiveDefinition' = 'DirectiveDefinition'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
src/schema/preparation/ast-validation-modules/calc-mutations-directive-validator.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
src/schema/preparation/ast-validation-modules/key-field-validator.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
src/schema/preparation/ast-validation-modules/only-allowed-types-validator.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...aration/post-merge-ast-transformation-modules/add-cursor-field-to-entities-transformer.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...hema/preparation/post-merge-ast-transformation-modules/add-query-meta-type-transformer.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.