diff --git a/src/schema.rs b/src/schema.rs index 58baa44d..b8749afe 100644 --- a/src/schema.rs +++ b/src/schema.rs @@ -333,6 +333,11 @@ where self.0.env.registry.export_sdl(false) } + /// Returns Federation SDL(Schema Definition Language) of this schema. + pub fn federation_sdl(&self) -> String { + self.0.env.registry.export_sdl(true) + } + /// Get all names in this schema /// /// Maybe you want to serialize a custom binary protocol. In order to minimize message size, a dictionary