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
// Example of annotated class@Data@AllArgsConstructor@ShareablepublicclassMenu {
@NonNullList<MenuItem> menuItems;
}
# generated graphql# expected @shareable directive in the line below, but it is not there:typeMenu {
menuItems: [MenuItem]!
}
# In addition, the federation directives aren't imported, nor are they defined in the output.
I took a look at the maven plugin, which does appear to implement federation, and I can't find similar code in the gradle plugin, so I believe its just not implemented. Can the team confirm, and if it isn't implemented advise on a timeframe for doing so?
The text was updated successfully, but these errors were encountered:
Thanks for responding. @jmartisk, looks like most of it was user error, enabling the appopriate settings resulted in those directives being added to the schema. However, there's one thing I wanted to inquire about that we weren't able to figure out. We're using the Apollo Federated Router in our environment, and from playing around with it it seems to want us to import directives rather than redefine them.
But this generated output from the smallrye doesn't
"Designates an object type as an entity and specifies its key fields (a set of fields that the subgraph can use to uniquely identify any instance of the entity). You can apply multiple @key directives to a single entity (to specify multiple valid sets of key fields)."directive@key(fields: FieldSet!, resolvable: Boolean = true) repeatableonOBJECT | INTERFACE
Is there a way we can get the smallrye-graphql library to emit the extend schema style of importing directions from the federation spec?
When using the Gradle Plugin (v2.6.2), the output of the
generateSchema
gradle task does not appear to generate federation-compatible directives.Sample code:
I took a look at the maven plugin, which does appear to implement federation, and I can't find similar code in the gradle plugin, so I believe its just not implemented. Can the team confirm, and if it isn't implemented advise on a timeframe for doing so?
The text was updated successfully, but these errors were encountered: