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

Add @client support on argument level #432

Open
Sachanski opened this issue Mar 25, 2024 · 0 comments
Open

Add @client support on argument level #432

Sachanski opened this issue Mar 25, 2024 · 0 comments
Labels
core Feature requests related to core functionality

Comments

@Sachanski
Copy link

Sachanski commented Mar 25, 2024

Hello and thank you for the great project!

I am opening this feature request as a result of this discussion.

What I was basically trying to achieve (and managed to thanks to some invaluable input from @jerelmiller) is to have custom arguments passed only to the type policies of the apollo client and not send them to the server.

After a bit of reading I came accross the @client directive provided by Apollo, however it is applicable only on a field level. What I was basically looking for was applying this directive on an argument.

The solution that @jerelmiller led me to implement works perfectly fine for me, but since he suggested opening a feature request I thought it might be a good idea to share it here as well (if the code snippet I posted helps in any way in the implementation of such a feature - all the better).

Best regards

@jerelmiller jerelmiller added the core Feature requests related to core functionality label Mar 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Feature requests related to core functionality
Projects
None yet
Development

No branches or pull requests

2 participants