You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Interface does not have any annotations despite having them defined in the GraphQL schema. This is not the behaviour I expect. There should either be an error that indicates that annotations cannot be placed on interfaces or annotations should be placed on the generated interface.
I don't know how feasible this feature is to implement. If it is not possible, an addition to the documentation or a warning during generation would be nice.
The text was updated successfully, but these errors were encountered:
THE-ORONCO
changed the title
GraphQL Interfaces should still be annotated when using the @annotate directive
GraphQL interfaces should still be annotated when using the @annotate directive
Apr 29, 2024
Given an interface and a type, both of which have the
@annotate
directive placed on them, annotations are only generated for the GraphQL type.For example (you can also find it as a cloneable repo):
generates the following class:
and interface:
The Interface does not have any annotations despite having them defined in the GraphQL schema. This is not the behaviour I expect. There should either be an error that indicates that annotations cannot be placed on interfaces or annotations should be placed on the generated interface.
I don't know how feasible this feature is to implement. If it is not possible, an addition to the documentation or a warning during generation would be nice.
The text was updated successfully, but these errors were encountered: