allow fragments on query-specified interfaces
Author: ZemnmezCreated Jan 26, 2019Updated Mar 5, 2026
Labels💤 stale ?
I'm doing some queries on the introspection system for the purpose of generating documentation. It routinely specifies name, description, isDeprecated etc for many fields. I'd like to be able to do something like:
interface Annotated {
name
description
isDeprecated
}
fragment Annotation on Annotated {
name
description
isDeprecated
}
query {
__schema {
types {
...Annotation
fields {
...Annotation
}
}
}
}Source: graphql/graphql-spec