- 
                Notifications
    
You must be signed in to change notification settings  - Fork 70
 
[EXPERIMENTAL] - support inputUnion #351
Conversation
| word('inputUnion'), | ||
| name('atom'), | ||
| list('Directive'), | ||
| p('='), | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i think we need the optional default keyword here as well?
| Type(token: Token) { | ||
| return token.value === '[' ? 'ListType' : 'NonNullType'; | ||
| }, | ||
| InputUnionValue: [p('{'), list('ObjectField'), p('}')], | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I couldn't figure out how to get Value to return this in the case statement above,  but maybe that's because I never saw a kind for it?
| 
           @asiandrummer @AGS- @wincent thoughts?  | 
    
| 
           Ah ha! It was true that   | 
    
| 
           This has come a long way since yesterday. Moved discussion to the   | 
    
| 
           save this one for posterity!  | 
    

Meant to be used with graphql/graphql-js#1196
Pending: matching PRs for
graphql-configgraphql-importand@types/graphql