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

Access the value of "variable" arguments (Value::Variable) #1476

Open
ghost opened this issue Feb 27, 2024 · 0 comments
Open

Access the value of "variable" arguments (Value::Variable) #1476

ghost opened this issue Feb 27, 2024 · 0 comments
Labels
question Further information is requested

Comments

@ghost
Copy link

ghost commented Feb 27, 2024

This is a new question clarifying a usecase here. Within the resolve method of an Extension implementation, how can I access the values of arguments passed in as variables? To the best of my understanding, for the passed in ResolveInfo called info, I can use the path info.field.arguments to access name and value tuple pairs. For $ variables, however, the Value enum resolves to Value::Variable, with a reference to Name. My understanding is I need to access the Variables map, however I can't find a way within this method.

Could you provide any insight into the appropriate way I should go about accessing variable values for this scenario?

@ghost ghost added the question Further information is requested label Feb 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

0 participants