Skip to content

Commit

Permalink
Do not import internal graphql/language/kinds module
Browse files Browse the repository at this point in the history
They are not part of the official API and it broke in 0.13: graphql/graphql-js#1221
  • Loading branch information
Yogu committed Feb 28, 2018
1 parent 6872fe3 commit 6533fa3
Show file tree
Hide file tree
Showing 47 changed files with 139 additions and 47 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {NamedTypeNode, ObjectTypeDefinitionNode, parse} from "graphql";
import {NAMED_TYPE, OBJECT_TYPE_DEFINITION} from "graphql/language/kinds";
import {NAMED_TYPE, OBJECT_TYPE_DEFINITION} from "../../../../src/graphql/kinds";
import {FILTER_ARG} from "../../../../src/schema/schema-defaults";
import {AddFilterArgumentsToFieldsTransformer} from "../../../../src/schema/preparation/post-merge-ast-transformation-modules/add-filter-arguments-to-fields-transformer";

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {parse} from "graphql";
import {INPUT_OBJECT_TYPE_DEFINITION} from "graphql/language/kinds";
import {INPUT_OBJECT_TYPE_DEFINITION} from "../../../../src/graphql/kinds";
import {AddFilterInputTypesTransformer} from "../../../../src/schema/preparation/post-merge-ast-transformation-modules/add-filter-input-types-transformer";
import {getNamedInputTypeDefinitionAST} from "../../../../src/schema/schema-utils";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import {parse} from "graphql";
import {findDirectiveWithName, getObjectTypes} from "../../../../src/schema/schema-utils";
import {AddNamespacesToTypesTransformer} from "../../../../src/schema/preparation/pre-merge-ast-transformation-modules/add-namespaces-to-types-transformer";
import {NAMESPACE_DIRECTIVE, ROOT_ENTITY_DIRECTIVE} from "../../../../src/schema/schema-defaults";
import {STRING} from "graphql/language/kinds";
import {STRING} from "../../../../src/graphql/kinds";

const modelWithRootEntity = `
type Stuff @rootEntity {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {parse} from "graphql";
import {ENUM_TYPE_DEFINITION, INPUT_OBJECT_TYPE_DEFINITION} from "graphql/language/kinds";
import {ENUM_TYPE_DEFINITION, INPUT_OBJECT_TYPE_DEFINITION} from "../../../../src/graphql/kinds";
import {AddFilterInputTypesTransformer} from "../../../../src/schema/preparation/post-merge-ast-transformation-modules/add-filter-input-types-transformer";
import {getNamedInputTypeDefinitionAST, getNamedTypeDefinitionAST} from "../../../../src/schema/schema-utils";
import {AddOrderbyInputEnumsTransformer} from "../../../../src/schema/preparation/post-merge-ast-transformation-modules/add-orderby-enums-transformer";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {ListTypeNode, NamedTypeNode, NonNullTypeNode, ObjectTypeDefinitionNode, parse} from "graphql";
import {LIST_TYPE, NAMED_TYPE, NON_NULL_TYPE, OBJECT_TYPE_DEFINITION} from "graphql/language/kinds";
import {LIST_TYPE, NAMED_TYPE, NON_NULL_TYPE, OBJECT_TYPE_DEFINITION} from "../../../../src/graphql/kinds";
import {ORDER_BY_ARG} from "../../../../src/schema/schema-defaults";
import {AddOrderbyArgumentsToFieldsTransformer} from "../../../../src/schema/preparation/post-merge-ast-transformation-modules/add-orderby-arguments-to-fields-transformer";

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {ObjectTypeDefinitionNode, parse} from "graphql";
import {OBJECT_TYPE_DEFINITION} from "graphql/language/kinds";
import {OBJECT_TYPE_DEFINITION} from "../../../../src/graphql/kinds";
import {getNamedTypeDefinitionAST} from "../../../../src/schema/schema-utils";
import {AddRootQueryTypeTransformer} from "../../../../src/schema/preparation/post-merge-ast-transformation-modules/add-root-query-type-transformer";

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {parse, SchemaDefinitionNode} from "graphql";
import {SCHEMA_DEFINITION} from "graphql/language/kinds";
import {SCHEMA_DEFINITION} from "../../../../src/graphql/kinds";
import {AddRootSchemaTransformer} from "../../../../src/schema/preparation/post-merge-ast-transformation-modules/add-root-schema-transformer";

const sdl = `
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {ListTypeNode, NonNullTypeNode, ObjectTypeDefinitionNode, parse} from "graphql";
import {NonNullableListsTransformer} from "../../../../src/schema/preparation/post-merge-ast-transformation-modules/non-nullable-lists-transformer";
import {LIST_TYPE, NAMED_TYPE, NON_NULL_TYPE} from "graphql/language/kinds";
import {LIST_TYPE, NAMED_TYPE, NON_NULL_TYPE} from "../../../../src/graphql/kinds";

const sdl1 = `
type Stuff {
Expand Down
2 changes: 1 addition & 1 deletion src/database/index-definition.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import {
} from "../schema/schema-defaults";
import {getNodeByName, isRootEntityType} from "../schema/schema-utils";
import {compact, flatMap, objectValues} from "../utils/utils";
import {DOCUMENT, LIST, OBJECT} from "graphql/language/kinds";
import {DOCUMENT, LIST, OBJECT} from "../graphql/kinds";

export interface IndexDefinition {
id: string,
Expand Down
78 changes: 78 additions & 0 deletions src/graphql/kinds.ts
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';
2 changes: 1 addition & 1 deletion src/schema/directive-arg-flattener.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {AnyValue, PlainObject} from "../utils/utils";
import {ValueNode, VariableNode} from "graphql";
import {BOOLEAN, ENUM, FLOAT, INT, LIST, NULL, OBJECT, STRING, VARIABLE} from "graphql/language/kinds";
import {BOOLEAN, ENUM, FLOAT, INT, LIST, NULL, OBJECT, STRING, VARIABLE} from "../graphql/kinds";

export function flattenValueNode(valueNode: ValueNode): any {
switch (valueNode.kind) {
Expand Down
2 changes: 1 addition & 1 deletion src/schema/edges.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import {FieldDefinitionNode, getNamedType, GraphQLField, GraphQLObjectType} from 'graphql';
import {findDirectiveWithName, getNodeByName} from './schema-utils';
import {INVERSE_OF_ARG, RELATION_DIRECTIVE} from "./schema-defaults";
import {STRING} from "graphql/language/kinds";
import {STRING} from "../graphql/kinds";

export enum RelationFieldEdgeSide {
FROM_SIDE,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { DocumentNode } from 'graphql';
import { LIST_TYPE } from 'graphql/language/kinds';
import { LIST_TYPE } from '../../../graphql/kinds';
import { CALC_MUTATIONS_DIRECTIVE, CALC_MUTATIONS_OPERATORS_ARG } from '../../schema-defaults';
import { findDirectiveWithName, getCalcMutationOperatorsFromDirective, getObjectTypes, getTypeNameIgnoringNonNullAndList } from '../../schema-utils';
import { ASTValidator } from '../ast-validator';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {
getTypeNameIgnoringNonNullAndList
} from "../../schema-utils";
import {INVERSE_OF_ARG, RELATION_DIRECTIVE} from "../../schema-defaults";
import {STRING} from "graphql/language/kinds";
import {STRING} from "../../../graphql/kinds";

export const VALIDATION_ERROR_INVALID_ARGUMENT_TYPE = 'Invalid argument type.';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import {
ROOT_ENTITY_DIRECTIVE,
VALUE_OBJECT_DIRECTIVE
} from "../../schema-defaults";
import {LIST_TYPE, NAMED_TYPE, NON_NULL_TYPE, OBJECT_TYPE_DEFINITION} from "graphql/language/kinds";
import {LIST_TYPE, NAMED_TYPE, NON_NULL_TYPE, OBJECT_TYPE_DEFINITION} from "../../../graphql/kinds";

export const VALIDATION_ERROR_LISTS_OF_ENTITY_EXTENSIONS_NOT_ALLOWED = 'Entity extensions are not allowed in lists. Use child entities instead.';
export const VALIDATION_ERROR_ROOT_ENTITY_NOT_EMBEDDABLE = 'Root entities are not embeddable. Embed a child entity or entity extension or use @relation or @reference instead.';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import {
CHILD_ENTITY_DIRECTIVE, ENTITY_EXTENSION_DIRECTIVE, INDEX_DIRECTIVE, INDEX_FIELDS_FIELD, INDICES_ARG,
ROOT_ENTITY_DIRECTIVE, UNIQUE_DIRECTIVE, VALUE_OBJECT_DIRECTIVE
} from "../../schema-defaults";
import {ENUM_TYPE_DEFINITION, LIST, OBJECT, OBJECT_FIELD, OBJECT_TYPE_DEFINITION, STRING} from "graphql/language/kinds";
import {ENUM_TYPE_DEFINITION, LIST, OBJECT, OBJECT_FIELD, OBJECT_TYPE_DEFINITION, STRING} from "../../../graphql/kinds";

export const VALIDATION_ERROR_INDICES_MISSING_FIELDS = 'Missing argument fields on index definition';
export const VALIDATION_ERROR_INDICES_INVALID_PATH_BAD_SYNTAX = 'A path should be field names separated by dots';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import {ASTValidator} from "../ast-validator";
import {DocumentNode} from "graphql";
import {ValidationMessage} from "../validation-message";
import {LIST_TYPE, NON_NULL_TYPE, SCALAR_TYPE_DEFINITION} from "graphql/language/kinds";
import {LIST_TYPE, NON_NULL_TYPE, SCALAR_TYPE_DEFINITION} from "../../../graphql/kinds";
import {getNamedTypeDefinitionAST, getObjectTypes, getTypeNameIgnoringNonNullAndList} from "../../schema-utils";
import {KEY_FIELD_DIRECTIVE, ROOT_ENTITY_DIRECTIVE} from "../../schema-defaults";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {
OBJECT_TYPE_DEFINITION,
SCALAR_TYPE_DEFINITION,
UNION_TYPE_DEFINITION
} from "graphql/language/kinds";
} from "../../../graphql/kinds";

export const VALIDATION_ERROR_DUPLICATE_TYPE_NAMES = "Duplicate type name";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import {ASTValidator} from "../ast-validator";
import {DocumentNode} from "graphql";
import {ValidationMessage} from "../validation-message";
import {getObjectTypes, hasDirectiveWithName} from "../../schema-utils";
import {LIST_TYPE, NON_NULL_TYPE} from "graphql/language/kinds";
import {LIST_TYPE, NON_NULL_TYPE} from "../../../graphql/kinds";
import {REFERENCE_DIRECTIVE} from "../../schema-defaults";

export const VALIDATION_ERROR_LIST_OF_REFERENCES_NOT_SUPPORTED = 'Lists of @reference are not supported. Use a child entity with a field of the reference instead.';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import {ASTValidator} from "../ast-validator";
import {DocumentNode} from "graphql";
import {ValidationMessage} from "../validation-message";
import {getObjectTypes} from "../../schema-utils";
import {LIST_TYPE, NAMED_TYPE, NON_NULL_TYPE} from "graphql/language/kinds";
import {LIST_TYPE, NAMED_TYPE, NON_NULL_TYPE} from "../../../graphql/kinds";

export const VALIDATION_ERROR_LISTS_OF_LISTS_NOT_ALLOWED = 'Lists of lists are not allowed.';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {
DEFAULT_PERMISSION_PROFILE,
PERMISSION_PROFILE_ARG, ROLES_DIRECTIVE, ROLES_READ_ARG, ROLES_READ_WRITE_ARG, ROOT_ENTITY_DIRECTIVE
} from '../../schema-defaults';
import { LIST, STRING } from 'graphql/language/kinds';
import { LIST, STRING } from '../../../graphql/kinds';

export const VALIDATION_ERROR_NO_PERMISSION_PROFILE = `No ${DEFAULT_PERMISSION_PROFILE} permission profile defined. Either specify permissionProfile in @rootEntity or use @roles directive`;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import {ASTValidator} from "../ast-validator";
import {DocumentNode} from "graphql";
import {ValidationMessage} from "../validation-message";
import {ENUM_TYPE_DEFINITION, OBJECT_TYPE_DEFINITION} from "graphql/language/kinds";
import {ENUM_TYPE_DEFINITION, OBJECT_TYPE_DEFINITION} from "../../../graphql/kinds";

export const VALIDATION_ERROR_INVALID_TYPE_KIND = "This kind of definition is not allowed. Only object and enum type definitions are allowed.";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {
hasDirectiveWithName
} from "../../schema-utils";
import {KEY_FIELD_DIRECTIVE, REFERENCE_DIRECTIVE, ROOT_ENTITY_DIRECTIVE} from "../../schema-defaults";
import {OBJECT_TYPE_DEFINITION} from "graphql/language/kinds";
import {OBJECT_TYPE_DEFINITION} from "../../../graphql/kinds";

export class ReferenceOnlyToRootEntitiesWithKeyFieldValidator implements ASTValidator {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {
getNamedTypeDefinitionAST, getObjectTypes, getTypeNameIgnoringNonNullAndList, hasDirectiveWithName
} from '../../schema-utils';
import { RELATION_DIRECTIVE, ROOT_ENTITY_DIRECTIVE } from '../../schema-defaults';
import { OBJECT_TYPE_DEFINITION } from 'graphql/language/kinds';
import { OBJECT_TYPE_DEFINITION } from '../../../graphql/kinds';

export class RelationsOnlyToRootEntitiesValidator implements ASTValidator {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {
DEFAULT_PERMISSION_PROFILE,
PERMISSION_PROFILE_ARG, ROLES_DIRECTIVE, ROLES_READ_ARG, ROLES_READ_WRITE_ARG, ROOT_ENTITY_DIRECTIVE
} from '../../schema-defaults';
import { LIST, STRING } from 'graphql/language/kinds';
import { LIST, STRING } from '../../../graphql/kinds';

export const VALIDATION_ERROR_ROLES_AND_PERMISSION_PROFILE_COMBINED = '@roles can not be used if permissionProfile is set in @rootEntity';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { ArgumentNode, DocumentNode } from 'graphql';
import { ValidationMessage } from '../validation-message';
import { findDirectiveWithName, getNodeByName, getRootEntityTypes } from '../../schema-utils';
import { ROLES_DIRECTIVE, ROLES_READ_ARG, ROLES_READ_WRITE_ARG } from '../../schema-defaults';
import { LIST, STRING } from 'graphql/language/kinds';
import { LIST, STRING } from '../../../graphql/kinds';

export const VALIDATION_WARNING_MISSING_ROLE_ON_ROOT_ENTITY = 'No roles with read access are specified for this root entity, access is denied for everyone';
export const VALIDATION_ERROR_MISSING_ROLE_ON_ROOT_ENTITY_ILLEGAL_ARGUMENT_TYPE = 'Invalid argument type. Only String and list of Strings are allowed.';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import {
NAMED_TYPE,
NON_NULL_TYPE,
OBJECT_TYPE_DEFINITION
} from 'graphql/language/kinds';
} from '../../../graphql/kinds';
import {getCreateInputTypeName} from '../../../graphql/names';
import {
ENTITY_CREATED_AT, ENTITY_UPDATED_AT, ID_FIELD, RELATION_DIRECTIVE, ROLES_DIRECTIVE
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import {ASTTransformer} from "../transformation-pipeline";
import {DocumentNode, FieldDefinitionNode} from "graphql";
import {buildNameNode, getChildEntityTypes, getRootEntityTypes} from "../../schema-utils";
import {FIELD_DEFINITION, NAMED_TYPE} from "graphql/language/kinds";
import {FIELD_DEFINITION, NAMED_TYPE} from "../../../graphql/kinds";
import {CURSOR_FIELD} from "../../schema-defaults";

export class AddCursorFieldToEntitiesTransformer implements ASTTransformer {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import {
NAMED_TYPE,
NON_NULL_TYPE,
OBJECT_TYPE_DEFINITION
} from "graphql/language/kinds";
} from "../../../graphql/kinds";
import {getCreateInputTypeName} from "../../../graphql/names";
import { ROLES_DIRECTIVE, ROOT_ENTITY_DIRECTIVE } from '../../schema-defaults';
import {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import {
NAMED_TYPE,
NON_NULL_TYPE,
OBJECT_TYPE_DEFINITION
} from "graphql/language/kinds";
} from "../../../graphql/kinds";
import {getFilterTypeName} from "../../../graphql/names";
import {FILTER_ARG} from "../../schema-defaults";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import {
NON_NULL_TYPE,
OBJECT_TYPE_DEFINITION,
SCALAR_TYPE_DEFINITION
} from "graphql/language/kinds";
} from "../../../graphql/kinds";
import {
containsField,
endsWithField,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {
NAMED_TYPE,
NON_NULL_TYPE,
OBJECT_TYPE_DEFINITION
} from 'graphql/language/kinds';
} from '../../../graphql/kinds';
import {
buildNameNode,
findDirectiveWithName, getCalcMutationOperatorsFromDirective,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {DocumentNode, FieldDefinitionNode} from "graphql";
import {buildNameNode, getObjectTypes} from "../../schema-utils";
import {FILTER_ARG, QUERY_META_TYPE, ROLES_DIRECTIVE} from '../../schema-defaults';
import {getMetaNameFieldFor} from "../../../graphql/names";
import {FIELD_DEFINITION, NAMED_TYPE, NON_NULL_TYPE} from "graphql/language/kinds";
import {FIELD_DEFINITION, NAMED_TYPE, NON_NULL_TYPE} from "../../../graphql/kinds";
import {mapNullable} from '../../../utils/utils';

export class AddMetaFieldsAlongWithFilterableFieldsTransformer implements ASTTransformer {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import {
NAMED_TYPE,
NON_NULL_TYPE,
OBJECT_TYPE_DEFINITION
} from "graphql/language/kinds";
} from "../../../graphql/kinds";
import {getOrderByEnumTypeName} from "../../../graphql/names";
import {ORDER_BY_ARG} from "../../schema-defaults";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { flatMap } from '../../../utils/utils';
import {
ENUM_TYPE_DEFINITION, ENUM_VALUE_DEFINITION, LIST_TYPE, NON_NULL_TYPE, OBJECT_TYPE_DEFINITION,
SCALAR_TYPE_DEFINITION
} from 'graphql/language/kinds';
} from '../../../graphql/kinds';
import { getOrderByEnumTypeName, sortedByAsc, sortedByDesc } from '../../../graphql/names';

export class AddOrderbyInputEnumsTransformer implements ASTTransformer {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import {
NAMED_TYPE,
NON_NULL_TYPE,
OBJECT_TYPE_DEFINITION
} from "graphql/language/kinds";
} from "../../../graphql/kinds";
import {AFTER_ARG, FIRST_ARG, VALUE_OBJECT_DIRECTIVE} from '../../schema-defaults';

export class AddPaginationArgumentsToFieldsTransformer implements ASTTransformer {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {ASTTransformer} from "../transformation-pipeline";
import {DocumentNode, GraphQLInt} from "graphql";
import {FIELD_DEFINITION, NAMED_TYPE, NON_NULL_TYPE, OBJECT_TYPE_DEFINITION} from "graphql/language/kinds";
import {FIELD_DEFINITION, NAMED_TYPE, NON_NULL_TYPE, OBJECT_TYPE_DEFINITION} from "../../../graphql/kinds";
import {buildNameNode} from "../../schema-utils";
import {COUNT_META_FIELD, QUERY_META_TYPE} from "../../schema-defaults";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import {
import {
DIRECTIVE, FIELD_DEFINITION, INPUT_VALUE_DEFINITION, NAMED_TYPE, NON_NULL_TYPE,
STRING
} from "graphql/language/kinds";
} from "../../../graphql/kinds";
import {
MUTATION_FIELD,
MUTATION_ID_ARG,
Expand Down
Loading

0 comments on commit 6533fa3

Please sign in to comment.