Fix missing docs for enum variants generated for dispatching GraphQL interface values
This commit is contained in:
parent
a4871887bb
commit
4dbd740fef
1 changed files with 8 additions and 1 deletions
|
@ -1730,8 +1730,15 @@ impl EnumType {
|
|||
|
||||
let variants = self.variants.iter().enumerate().map(|(n, ty)| {
|
||||
let variant = Self::variant_ident(n);
|
||||
let doc = format!(
|
||||
"`{}` implementer of this GraphQL interface.",
|
||||
quote! { #ty },
|
||||
);
|
||||
|
||||
quote! { #variant(#ty), }
|
||||
quote! {
|
||||
#[doc = #doc]
|
||||
#variant(#ty),
|
||||
}
|
||||
});
|
||||
|
||||
let phantom_variant = if self.has_phantom_variant() {
|
||||
|
|
Loading…
Reference in a new issue