graphql-platform icon indicating copy to clipboard operation
graphql-platform copied to clipboard

Support for community directives - `tag` for Apollo contracts

Open damienpontifex opened this issue 3 years ago • 1 comments

Is your feature request related to a problem?

There are some published directives that specific providers might support - in this case, looking at the tag directive to support Apollo Contracts

Opening this issue to see whether there's support for including general directives in this library? It isn't a GraphQL standard (that I'm aware of) so is kind of provider specific. But equally can be related to Apollo Federation.

The solution you'd like

I have a local implementation, but would like to submit it as a PR to be available in the HotChocolate library if maintainers are open to this happening. And equally guidance on which project/namespace it'd sit.

Product

Hot Chocolate

damienpontifex avatar Jul 13 '22 05:07 damienpontifex

I will read into the tag directive a bit more but I am more skeptical for inclusion of it. There is a spec proposal which will introduce functionality very much like that and we will wait for that I think.

michaelstaib avatar Jul 21 '22 21:07 michaelstaib

The @tag directive is now part of federation 2, so seems like something a bit more "core" than community (see table of feature support https://www.apollographql.com/docs/federation/building-supergraphs/supported-subgraphs)

I'll see if I can submit a PR for consideration and then something tangible to review

damienpontifex avatar Mar 07 '23 22:03 damienpontifex

This is now implemented and available in 13.6

michaelstaib avatar Oct 16 '23 16:10 michaelstaib