function
Virtual
func Virtual(
name string,
valueType ValueType,
options ...CommonOption,
) DefinitionDeclare a computed, non-stored output field.
Provide the resolver in Collection.Computed or Global.Computed.
Related types
ValueTypeThe output type promised by a virtual field.
CommonOptionOptions accepted by every built-in and plugin field.
DefinitionAn immutable authored field definition.