Skip to content

Commit 924edf4

Browse files
committed
refactor: use fine-grained imports from graphql-js
Webpack's tree-shaking implementation needs a little help here.
1 parent 9997823 commit 924edf4

File tree

10 files changed

+10
-10
lines changed

10 files changed

+10
-10
lines changed

src/schema-proxy.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* LICENSE-examples file in the root directory of this source tree.
77
*/
88

9-
import { graphql } from 'graphql';
9+
import { graphql } from 'graphql/graphql';
1010
import schema from './schema';
1111

1212
export function execute(query, variables, operationName) {

src/schema/commonFields.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* @flow strict
99
*/
1010

11-
import { GraphQLString } from 'graphql';
11+
import { GraphQLString } from 'graphql/type';
1212

1313
// These two fields appear on all types, so let's only write them once.
1414
export function createdField(): any {

src/schema/connections.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import {
1616

1717
import { getObjectsFromUrls } from './apiHelper';
1818

19-
import { GraphQLInt, GraphQLList } from 'graphql';
19+
import { GraphQLInt, GraphQLList } from 'graphql/type';
2020

2121
import type { GraphQLObjectType, GraphQLFieldConfig } from 'graphql';
2222

src/schema/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import {
1414
GraphQLList,
1515
GraphQLObjectType,
1616
GraphQLSchema,
17-
} from 'graphql';
17+
} from 'graphql/type';
1818

1919
import {
2020
fromGlobalId,

src/schema/types/film.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import {
1313
GraphQLList,
1414
GraphQLObjectType,
1515
GraphQLString,
16-
} from 'graphql';
16+
} from 'graphql/type';
1717

1818
import { globalIdField } from 'graphql-relay';
1919

src/schema/types/person.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import {
1313
GraphQLInt,
1414
GraphQLObjectType,
1515
GraphQLString,
16-
} from 'graphql';
16+
} from 'graphql/type';
1717

1818
import { globalIdField } from 'graphql-relay';
1919

src/schema/types/planet.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import {
1414
GraphQLList,
1515
GraphQLObjectType,
1616
GraphQLString,
17-
} from 'graphql';
17+
} from 'graphql/type';
1818

1919
import { globalIdField } from 'graphql-relay';
2020

src/schema/types/species.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import {
1414
GraphQLList,
1515
GraphQLObjectType,
1616
GraphQLString,
17-
} from 'graphql';
17+
} from 'graphql/type';
1818

1919
import { globalIdField } from 'graphql-relay';
2020

src/schema/types/starship.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import {
1414
GraphQLList,
1515
GraphQLObjectType,
1616
GraphQLString,
17-
} from 'graphql';
17+
} from 'graphql/type';
1818

1919
import { globalIdField } from 'graphql-relay';
2020

src/schema/types/vehicle.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import {
1414
GraphQLList,
1515
GraphQLObjectType,
1616
GraphQLString,
17-
} from 'graphql';
17+
} from 'graphql/type';
1818

1919
import { globalIdField } from 'graphql-relay';
2020

0 commit comments

Comments
 (0)