Add Schema::federation_sdl
method. #376
This commit is contained in:
parent
8bc33cfd44
commit
ed1dce4985
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user