GQLServiceDefinition
class GQLServiceDefinition(val sourceLocation: SourceLocation? = null, val description: String?, val directives: List<GQLDirective>, val capabilities: List<GQLCapability>) : GQLDefinition, GQLDescribed, GQLHasDirectives
A service definition.
Service capabilities is an experimental feature. Because GQLServiceExtension 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 (definition) {
// ...
is GQLServiceDefinition -> error("Service capabilities is an experimental feature and is currently not supported. See https://github.com/graphql/graphql-spec/pull/1208 for more details.")
}Content copied to clipboard
Constructors
Link copied to clipboard
constructor(sourceLocation: SourceLocation? = null, description: String?, directives: List<GQLDirective>, capabilities: List<GQLCapability>)
Properties
Functions
Link copied to clipboard
fun copy(sourceLocation: SourceLocation? = this.sourceLocation, description: String? = this.description, directives: List<GQLDirective> = this.directives, capabilities: List<GQLCapability> = this.capabilities): GQLServiceDefinition
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