Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1131 variables in parse literal for Scalars #1170

Merged

Conversation

bbakerman
Copy link
Member

@bbakerman bbakerman commented Aug 11, 2018

See #1131

This is useful for a Scalar implementation that wants to get access to the variables so they can do VariableReference AST replacement.

So for example { field (arg : { this: "ast can", variable : $replacement }

where arg is in fact defined as "a complete Scalar" and not a compound type

Passing the variables to parseLiteral is actually implemented in graphql-js.

An example of his in graphql-js is https://github.com/taion/graphql-type-json/blob/master/src/index.js#L36

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants