GQLDirectiveExtension
class GQLDirectiveExtension(val sourceLocation: SourceLocation? = null, val name: String, val directives: List<GQLDirective>) : GQLDefinition, GQLTypeSystemExtension, GQLNamed, GQLHasDirectives
A directive extension.
Directive on directives is an experimental feature. Because GQLDirectiveExtension implements a sealed interface, you might have to handle the when case even though you did not opt into the feature. If that is the case, and if you do not want to support the experimental feature, you can safely ignore the case:
@OptIn(ApolloExperimental::class)
when (extension) {
// ...
is GQLDirectiveExtension -> error("Directives on directives is an experimental feature and is currently not supported. See https://github.com/graphql/graphql-spec/pull/567 for more details.")
}Content copied to clipboard
Functions
Link copied to clipboard
fun copy(sourceLocation: SourceLocation? = this.sourceLocation, name: String = this.name, directives: List<GQLDirective> = this.directives): GQLDirectiveExtension
Link copied to clipboard
Internal-only. Copies this code using the given children
Link copied to clipboard
Link copied to clipboard
Internal-only. Copies this code using the given children