apollographql / apollo-feature-requests

🧑‍🚀 Apollo Client Feature Requests | (no 🐛 please).
Other
130 stars 7 forks source link

Feature request : support @argumentDefinitions directive #18

Closed jacobwgillespie closed 3 years ago

jacobwgillespie commented 6 years ago

Migrated from: apollographql/apollo-client#2723

axelhzf commented 6 years ago

Any plan to implement this feature?

If I understand the problem correctly, it looks like relay transform this directive at compile time. This is why this could be hard to implement in apollo?

Posting this link as a reference: https://github.com/facebook/graphql/issues/204

Quramy commented 4 years ago

It’s so interesting. I think we need “Fragment-scoped variables” when colocating query’s fragment and some UI components(e.g. React JSX).

So I’ve published https://github.com/Quramy/apollo-link-fragment-argument to enable @argumentDefinitions and @arguments directives.

Pls send me some feedbacks.