Parameters
string
required
The field name. Its literal type is retained in
Field<Name>.JsonSchema
required
The JSON Schema for field values. For example,
{ type: "string" } or { type: "array", items: { type: "string" } }.AuthoringIdOptions
default:"{}"
Optional identity override.
Returns
Field<Name>
A field definition. Reuse this object in node settings and
definePipeline({ fields }).field() constructs a definition; it does not create a dataset field or validate the schema against the platform. Use pipeline reconciliation to create it on the platform.
Optional bindings
optional(referencedField) takes one required Field and returns { field: referencedField, optional: true }. It changes the binding’s optionality without changing the field’s schema. Use it in a root’s started or completed list, or a Code or Match node’s field bindings.
For required Code and Match bindings, use { field, optional: false }. Root lists also accept a bare field as a required binding. Generation and Quorum entities use an optional property on the entity object.