From ed1dce498522c1635b91e60836c4fcc096a7e741 Mon Sep 17 00:00:00 2001 From: Sunli Date: Wed, 6 Jan 2021 11:01:13 +0800 Subject: [PATCH] Add `Schema::federation_sdl` method. #376 --- src/schema.rs | 5 +++++ 1 file changed, 5 insertions(+) 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