-
Notifications
You must be signed in to change notification settings - Fork 839
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support thunks for Union.Types definitions
In schemas, it is possible to define the Union type before the definitions of the object types that are part of the union. This change adds a "UnionTypesThunk" option when creating a new Union, similar to the existing FieldsThunk and InterfacesThunk. This more closely matches the interface in graphql-js: https://github.com/graphql/graphql-js/blob/47bd8c8897c72d3efc17ecb1599a95cee6bac5e8/src/type/definition.ts#L1307 It is a first step in closing out #624
- Loading branch information
1 parent
f02a1c9
commit 0e40a4e
Showing
2 changed files
with
99 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters