We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a487188 commit 4dbd740Copy full SHA for 4dbd740
juniper_codegen/src/graphql_interface/mod.rs
@@ -1730,8 +1730,15 @@ impl EnumType {
1730
1731
let variants = self.variants.iter().enumerate().map(|(n, ty)| {
1732
let variant = Self::variant_ident(n);
1733
+ let doc = format!(
1734
+ "`{}` implementer of this GraphQL interface.",
1735
+ quote! { #ty },
1736
+ );
1737
- quote! { #variant(#ty), }
1738
+ quote! {
1739
+ #[doc = #doc]
1740
+ #variant(#ty),
1741
+ }
1742
});
1743
1744
let phantom_variant = if self.has_phantom_variant() {
0 commit comments