toDeclaration
fun QueryTypeFact.toDeclaration(field: QueryField, contextName: String? = null): QueryFieldDeclaration
The query meaning of a QueryTypeFact at field: its structure as a declaration, with properties that are not valid query path segments left out, standard date formats as Temporal.Date, and member annotations applied.
Parameters
field
the logical field the value sits at.
contextName
the bounded context of the model the type belongs to: the one a QueryReference that names no context refers into; null when there is none, and such a reference is then a conflict.
Throws
when an annotation cannot apply to the value, or a sensitive member would be lost (behind an invalid property name, or among members the source did not expand).