# NoSelections

object NoSelections : SelectionSet<CompositeOutput.NotComposite> (source)

A marker object that defines a SelectionSet for a type that does not support selections. NoSelections can be used in places where a SelectionSet is required but cannot be defined.

## Properties

type
Link copied to clipboard
open override val type: Type<CompositeOutput.NotComposite>

the type condition of this SelectionSet

## Functions

contains
Link copied to clipboard
open override fun <U : CompositeOutput.NotComposite> contains(field: Field<U>): Boolean

Returns true if this SelectionSet includes the provided Field.

isEmpty
Link copied to clipboard
open override fun isEmpty(): Boolean

Returns true if this SelectionSet contains no fields for any valid type projection.

requestsType
Link copied to clipboard
open override fun <U : CompositeOutput.NotComposite> requestsType(type: Type<U>): Boolean

Returns true if the provided type is requested in this SelectionSet.

selectionSetFor
Link copied to clipboard
open override fun <U : CompositeOutput.NotComposite, R : CompositeOutput> selectionSetFor(field: CompositeField<U, R>): SelectionSet<R>

Return a SelectionSet describing the selections at the provided field. If the current SelectionSet does not include the provided field, then an empty SelectionSet will be returned.

open override fun <U : CompositeOutput.NotComposite> selectionSetFor(type: Type<U>): SelectionSet<U>

Return a SelectionSet that is a projection of the selections on the provided type. The returned SelectionSet may include fields that are selected on a parent interface or union -- if you need to know if a projected SelectionSet contains non-inherited selections for a type, see requestsType