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
when I use a general way to generate schema into SDL, JSON, I get an incorrect federated schema
typeUser {
id: ID!
}
typeQuery {
_entities(representations: [_Any!]!): [_Entity]!_service: _Service!
}
scalar_Anyunion_Entity = User"""The sdl representing the federated service capabilities. Includes federationdirectives, removes federation types, and includes rest of full schema afterschema directives have been applied"""type_Service {
sdl: String
}
How can I generate a federated schema?
The text was updated successfully, but these errors were encountered:
# Returns the sdl (schema definition language) representing the federated service capabilities. Includes federation
# directives, removes federation types, and includes rest of full schema after schema directives have been applied.
sdl_query = <<-GQL
{
_service {
sdl
}
}
GQL
UsersSchema.execute(sdl_query)
I ran into this same issue myself, and someone on the Apollo team provided this solution. Let me know if that works for you.
Hi all,
I want to generate a federated schema. But I get the schema without any directives/etc.
for instance, I have
when I use a general way to generate schema into SDL, JSON, I get an incorrect federated schema
How can I generate a federated schema?
The text was updated successfully, but these errors were encountered: