Closed tmc closed 1 year ago
Oh it it something like this:
if __name__ == "__main__":
from graphql import graphql_sync
result = graphql_sync(schema.graphql_schema, '{ _service { sdl } }')
print(result.data["_service"]["sdl"].strip())
Yes, the schema printer in GQL-Core won't include these directives by design. You can only get the full federated schema using the introspection query. We should add this to the docs soon 😊
I believe newer federation expects @key to be a directive on types that are backed by multiple services.
How do I preserve this in the SDL output?
e.g. output
vs
from example schema: