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

[Feature Request] Context in Scalars #621

Open
Yomanz opened this issue Apr 24, 2021 · 0 comments
Open

[Feature Request] Context in Scalars #621

Yomanz opened this issue Apr 24, 2021 · 0 comments

Comments

@Yomanz
Copy link

Yomanz commented Apr 24, 2021

It would be cool to have the context in Scalars so we can use information found before executing the query to determine if a scalar is applicable.

i.e.
Scalar AgnosticID, if the context has string or number to differentiate between the 2 possible IDs that can be used, the scalar can check against the context which is correct and either return the correct value or throw an error.

This would be very useful for arguments, not really useful for returning data though.

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

No branches or pull requests

1 participant