We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I searched about dynamic queries but did not found exactly what I am looking for, so my question:
Is it possible to pass Query Variables to be used as Fields?
Let me explain with an example:
query SpecificationsTemplateQuery($categoryName: String, $fields: datasheet_2) { allSpecificationsYaml(filter: {categoryName: {eq: $categoryName}}) { edges { node { title datasheet { $fields } } } } }
This is similar idea> apollographql/react-apollo#330 (comment)
The text was updated successfully, but these errors were encountered:
unfortunately no, there is no way to do this. GraphQL variables don't work like that, we'de need to see it added to the spec :/
Sorry, something went wrong.
No branches or pull requests
I searched about dynamic queries but did not found exactly what I am looking for, so my question:
Is it possible to pass Query Variables to be used as Fields?
Let me explain with an example:
This is similar idea> apollographql/react-apollo#330 (comment)
The text was updated successfully, but these errors were encountered: