Maybe this is a bit edge case but it's valid for federation and I can't quite figure out how to achieve it. I would like to generate a schema like:
union _Entity = Shelf
type Books {
name: String!
shelf: Shelf
....
"Query root"
type Query {
_entities(representations: [_Any!]!): [_Entity]!
_service: _Service!
}
...
However with smallrye-graphql I need at least 1 query for it to build the schema and then invoke the Federation transformer to add the additional entities query that allows for this usecase. The only thing I can think of is that when it checks schema.hasOperations()) in Bootstrap.java it should also check to see if it will generate the entities query.
Maybe this is a bit edge case but it's valid for federation and I can't quite figure out how to achieve it. I would like to generate a schema like:
However with smallrye-graphql I need at least 1 query for it to build the schema and then invoke the Federation transformer to add the additional
entities
query that allows for this usecase. The only thing I can think of is that when it checksschema.hasOperations())
inBootstrap.java
it should also check to see if it will generate theentities
query.