-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Add fragment variables to parseLiteral #4189
Conversation
✅ Deploy Preview for compassionate-pike-271cb3 ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
Hi @JoviDeCroock, I'm @github-actions bot happy to help you with this PR 👋 Supported commandsPlease post this commands in separate comments and only one per comment:
|
e777124
to
28f0bf2
Compare
@JoviDeCroock -- we may possibly need to decide a gameplan on #4182 before we address this? If we keep what we have now without #4182, I think we would need to pass both In the default value validation stack, in #3812 @leebyron has added a On the other hand, if we take #4182, I think the variableValues would already be coalesced, so we might not need this PR? Have to double check, but either way would be either this PR or no PR, different different than the above plan if we stick with what we have now. My preference would be to close #4182 and keep what we have -- see discussion there in terms of benchmarking -- and go with extracting
|
Woops, |
@yaacovCR I am with you on closing the other PR, I don't understand why we need |
Merging the variable maps naively means that if fragment and operation variable names overlap, and the fragment variable is not provided, the operation variable will be used instead. I have now successfully rebased the first four PRs in the default value validation stack #3809 #3810 #3811 and #3812 #3812 brings sanity to variables embedded within scalars by way of a new replaceVariables helper — and fixes this issue. |
This adds in support for parsing literals that are encapsulated within a fragment, this allows us to leverage any shadowed operation variable or newly introduced fragment-variable.