Add Schema::federation_sdl method. #376

This commit is contained in:
Sunli 2021-01-06 11:01:13 +08:00
parent 8bc33cfd44
commit ed1dce4985

View File

@ -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