We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a3c5b8e commit ebd8abdCopy full SHA for ebd8abd
site/graphql-js/APIReference-TypeSystem.md
@@ -370,10 +370,12 @@ class GraphQLUnionType {
370
371
type GraphQLUnionTypeConfig = {
372
name: string,
373
- types: Array<GraphQLObjectType>,
+ types: GraphQLObjectsThunk | Array<GraphQLObjectType>,
374
resolveType?: (value: any, info?: GraphQLResolveInfo) => ?GraphQLObjectType;
375
description?: ?string;
376
};
377
+
378
+type GraphQLObjectsThunk = () => Array<GraphQLObjectType>;
379
```
380
381
When a field can return one of a heterogeneous set of types, a Union type
0 commit comments