Adds a value to an AggregateMetadataKey of a field.
API
function aggregateMetadata< TValue, TMetadataItem, TPathKind extends PathKind = PathKind.Root,>( path: SchemaPath<TValue, 1, TPathKind>, key: AggregateMetadataKey<any, TMetadataItem>, logic: NoInfer<LogicFn<TValue, TMetadataItem, TPathKind>>,): void;aggregateMetadata
voidAdds a value to an AggregateMetadataKey of a field.
@paramlogic
NoInfer<LogicFn<TValue, TMetadataItem, TPathKind>>A function that receives the FieldContext and returns a value to add to the aggregate metadata.
@returns
voidJump to details