GQLCapability

class GQLCapability(val sourceLocation: SourceLocation? = null, val description: String?, val name: String, val value: String?) : GQLNode

A service capability.

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 (node) {
// ...
is GQLCapability -> error("Service capabilities is an experimental feature and is currently not supported. See https://github.com/graphql/graphql-spec/pull/1208 for more details.")
}

Constructors

Link copied to clipboard
constructor(sourceLocation: SourceLocation? = null, description: String?, name: String, value: String?)

Properties

Link copied to clipboard
open override val children: List<GQLNode>

The children of this node.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override val sourceLocation: SourceLocation?
Link copied to clipboard

Functions

Link copied to clipboard
fun copy(sourceLocation: SourceLocation? = this.sourceLocation, description: String? = this.description, qualifiedName: String = this.name, value: String? = this.value): GQLCapability
Link copied to clipboard
open override fun copyWithNewChildrenInternal(container: NodeContainer): GQLNode

Internal-only. Copies this code using the given children

Link copied to clipboard
fun GQLNode.toUtf8(indent: String = " "): String
fun GQLNode.toUtf8(sink: BufferedSink, indent: String = " ")
fun GQLNode.toUtf8(file: File, indent: String = " ")
Link copied to clipboard
Link copied to clipboard
open override fun writeInternal(writer: SDLWriter)

Internal-only. Copies this code using the given children