QueryFieldDeclarationBuilder

One field or nested value: its shape (kind, types, nullability, structure) and semantics (enum, time, text).

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
fun aliases(vararg value: String)

Other logical paths that name this value, which admission replaces with its own.

Link copied to clipboard
Link copied to clipboard
fun deprecated(message: String? = null)

Keeps the value only for existing callers; message says why, or what to use instead.

Link copied to clipboard
fun description(value: String)
Link copied to clipboard
fun enumValue(value: Any?, description: String? = null)

Adds one declared value, with what it means.

Link copied to clipboard

The element of an array.

Link copied to clipboard
fun kind(value: QueryValueKind)

SCALAR, OBJECT or ARRAY; implied by types, property/values or items when not stated. OBJECT also opens a value a lower source declares opaque (kind UNKNOWN), so its properties can be declared.

Link copied to clipboard
fun nullable(value: Boolean)
Link copied to clipboard
Link copied to clipboard
fun reference(contextName: String, aggregateName: String)

The value is the id of an aggregate: aggregateName of the bounded context contextName (REFERENCE).

Link copied to clipboard
fun required(value: Boolean)

Whether every record holds the value; a required value is never missing.

Link copied to clipboard
Link copied to clipboard
fun temporalEpoch(unit: TimeUnit = TimeUnit.MILLISECONDS)
Link copied to clipboard
Link copied to clipboard
fun title(value: String)
Link copied to clipboard
fun types(vararg value: QueryValueType)
Link copied to clipboard

The value of every key of a map.