Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0d3550e

Browse files
author
Travis CI
committed
Deploy 6b033c2 to NPM branch
1 parent 4b6ed1f commit 0d3550e

File tree

3 files changed

+14
-6
lines changed

3 files changed

+14
-6
lines changed

utilities/buildClientSchema.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,9 @@ function buildClientSchema(introspection, options) {
178178
return new _definition.GraphQLObjectType({
179179
name: objectIntrospection.name,
180180
description: objectIntrospection.description,
181-
interfaces: objectIntrospection.interfaces.map(getInterfaceType),
181+
interfaces: function interfaces() {
182+
return objectIntrospection.interfaces.map(getInterfaceType);
183+
},
182184
fields: function fields() {
183185
return buildFieldDefMap(objectIntrospection);
184186
}
@@ -203,7 +205,9 @@ function buildClientSchema(introspection, options) {
203205
return new _definition.GraphQLUnionType({
204206
name: unionIntrospection.name,
205207
description: unionIntrospection.description,
206-
types: unionIntrospection.possibleTypes.map(getObjectType)
208+
types: function types() {
209+
return unionIntrospection.possibleTypes.map(getObjectType);
210+
}
207211
});
208212
}
209213

utilities/buildClientSchema.js.flow

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ export function buildClientSchema(
221221
return new GraphQLObjectType({
222222
name: objectIntrospection.name,
223223
description: objectIntrospection.description,
224-
interfaces: objectIntrospection.interfaces.map(getInterfaceType),
224+
interfaces: () => objectIntrospection.interfaces.map(getInterfaceType),
225225
fields: () => buildFieldDefMap(objectIntrospection),
226226
});
227227
}
@@ -248,7 +248,7 @@ export function buildClientSchema(
248248
return new GraphQLUnionType({
249249
name: unionIntrospection.name,
250250
description: unionIntrospection.description,
251-
types: unionIntrospection.possibleTypes.map(getObjectType),
251+
types: () => unionIntrospection.possibleTypes.map(getObjectType),
252252
});
253253
}
254254

utilities/buildClientSchema.mjs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,9 @@ export function buildClientSchema(introspection, options) {
158158
return new GraphQLObjectType({
159159
name: objectIntrospection.name,
160160
description: objectIntrospection.description,
161-
interfaces: objectIntrospection.interfaces.map(getInterfaceType),
161+
interfaces: function interfaces() {
162+
return objectIntrospection.interfaces.map(getInterfaceType);
163+
},
162164
fields: function fields() {
163165
return buildFieldDefMap(objectIntrospection);
164166
}
@@ -183,7 +185,9 @@ export function buildClientSchema(introspection, options) {
183185
return new GraphQLUnionType({
184186
name: unionIntrospection.name,
185187
description: unionIntrospection.description,
186-
types: unionIntrospection.possibleTypes.map(getObjectType)
188+
types: function types() {
189+
return unionIntrospection.possibleTypes.map(getObjectType);
190+
}
187191
});
188192
}
189193

0 commit comments

Comments
 (0)