Add ability to exclude Subscription from _service.sdl #131

This commit is contained in:
Sunli 2020-06-01 19:36:19 +08:00
parent 27587dda8f
commit 983b8bacf9
1 changed files with 5 additions and 0 deletions

View File

@ -471,6 +471,11 @@ impl Registry {
// Is empty query root, only __schema, __type, _service, _entities fields
return;
}
if let Some(subscription_type) = &self.subscription_type {
if name == subscription_type {
return;
}
}
if *extends {
write!(sdl, "extend ").ok();
}