From 72ff49584cf931d029a7b48e73bfa434d2877342 Mon Sep 17 00:00:00 2001 From: Nick Harris Date: Tue, 15 Nov 2016 14:09:40 +0000 Subject: [PATCH] Update GraphQLUnionType types GraphQLUnionType documentation was missing a Thunk definition for 'types'. --- site/graphql-js/APIReference-TypeSystem.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/site/graphql-js/APIReference-TypeSystem.md b/site/graphql-js/APIReference-TypeSystem.md index 7bb267e96f..c9b6d09b6c 100644 --- a/site/graphql-js/APIReference-TypeSystem.md +++ b/site/graphql-js/APIReference-TypeSystem.md @@ -370,10 +370,12 @@ class GraphQLUnionType { type GraphQLUnionTypeConfig = { name: string, - types: Array, + types: GraphQLObjectsThunk | Array, resolveType?: (value: any, info?: GraphQLResolveInfo) => ?GraphQLObjectType; description?: ?string; }; + +type GraphQLObjectsThunk = () => Array; ``` When a field can return one of a heterogeneous set of types, a Union type