From 5b0c07b0ab24635e173e9e53bbde0e110b1d92aa Mon Sep 17 00:00:00 2001 From: Moti Zilberman Date: Sun, 15 Apr 2018 23:34:04 +0200 Subject: [PATCH] Revert "refactor: use fine-grained imports from graphql-js" This reverts commit 924edf439f61634eec9a22cb0fb68e525e9b7418. --- src/schema-proxy.js | 2 +- src/schema/commonFields.js | 2 +- src/schema/connections.js | 2 +- src/schema/index.js | 2 +- src/schema/types/film.js | 2 +- src/schema/types/person.js | 2 +- src/schema/types/planet.js | 2 +- src/schema/types/species.js | 2 +- src/schema/types/starship.js | 2 +- src/schema/types/vehicle.js | 2 +- 10 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/schema-proxy.js b/src/schema-proxy.js index 6b9ecdd..01940ba 100644 --- a/src/schema-proxy.js +++ b/src/schema-proxy.js @@ -6,7 +6,7 @@ * LICENSE-examples file in the root directory of this source tree. */ -import { graphql } from 'graphql/graphql'; +import { graphql } from 'graphql'; import schema from './schema'; export function execute(query, variables, operationName) { diff --git a/src/schema/commonFields.js b/src/schema/commonFields.js index c1176ec..ff7f1e5 100644 --- a/src/schema/commonFields.js +++ b/src/schema/commonFields.js @@ -8,7 +8,7 @@ * @flow strict */ -import { GraphQLString } from 'graphql/type'; +import { GraphQLString } from 'graphql'; // These two fields appear on all types, so let's only write them once. export function createdField(): any { diff --git a/src/schema/connections.js b/src/schema/connections.js index 854935d..f7340e5 100644 --- a/src/schema/connections.js +++ b/src/schema/connections.js @@ -16,7 +16,7 @@ import { import { getObjectsFromUrls } from './apiHelper'; -import { GraphQLInt, GraphQLList } from 'graphql/type'; +import { GraphQLInt, GraphQLList } from 'graphql'; import type { GraphQLObjectType, GraphQLFieldConfig } from 'graphql'; diff --git a/src/schema/index.js b/src/schema/index.js index 32cb1c7..5f61c2c 100644 --- a/src/schema/index.js +++ b/src/schema/index.js @@ -14,7 +14,7 @@ import { GraphQLList, GraphQLObjectType, GraphQLSchema, -} from 'graphql/type'; +} from 'graphql'; import { fromGlobalId, diff --git a/src/schema/types/film.js b/src/schema/types/film.js index eaa8be9..01b0620 100644 --- a/src/schema/types/film.js +++ b/src/schema/types/film.js @@ -13,7 +13,7 @@ import { GraphQLList, GraphQLObjectType, GraphQLString, -} from 'graphql/type'; +} from 'graphql'; import { globalIdField } from 'graphql-relay'; diff --git a/src/schema/types/person.js b/src/schema/types/person.js index 1d78aee..a3bcb73 100644 --- a/src/schema/types/person.js +++ b/src/schema/types/person.js @@ -13,7 +13,7 @@ import { GraphQLInt, GraphQLObjectType, GraphQLString, -} from 'graphql/type'; +} from 'graphql'; import { globalIdField } from 'graphql-relay'; diff --git a/src/schema/types/planet.js b/src/schema/types/planet.js index d026cc2..4fc27bf 100644 --- a/src/schema/types/planet.js +++ b/src/schema/types/planet.js @@ -14,7 +14,7 @@ import { GraphQLList, GraphQLObjectType, GraphQLString, -} from 'graphql/type'; +} from 'graphql'; import { globalIdField } from 'graphql-relay'; diff --git a/src/schema/types/species.js b/src/schema/types/species.js index 48f94d5..0ee7d5c 100644 --- a/src/schema/types/species.js +++ b/src/schema/types/species.js @@ -14,7 +14,7 @@ import { GraphQLList, GraphQLObjectType, GraphQLString, -} from 'graphql/type'; +} from 'graphql'; import { globalIdField } from 'graphql-relay'; diff --git a/src/schema/types/starship.js b/src/schema/types/starship.js index 4596b68..ac1e6b8 100644 --- a/src/schema/types/starship.js +++ b/src/schema/types/starship.js @@ -14,7 +14,7 @@ import { GraphQLList, GraphQLObjectType, GraphQLString, -} from 'graphql/type'; +} from 'graphql'; import { globalIdField } from 'graphql-relay'; diff --git a/src/schema/types/vehicle.js b/src/schema/types/vehicle.js index 7b5aa2c..d97bdf7 100644 --- a/src/schema/types/vehicle.js +++ b/src/schema/types/vehicle.js @@ -14,7 +14,7 @@ import { GraphQLList, GraphQLObjectType, GraphQLString, -} from 'graphql/type'; +} from 'graphql'; import { globalIdField } from 'graphql-relay';