-
Notifications
You must be signed in to change notification settings - Fork 70
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?
@@ -196,6 +198,7 @@ export const ParseRules: {[name: string]: ParseRule} = { | |||
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-config
graphql-import
and@types/graphql