data
Reads or rewrites context.data for create/update/patch.
| Name | Category | Description |
|---|---|---|
checkRequired | hooks | Validates that the specified fields exist on |
createRelated | hooks | Creates related records in other services after a successful |
findOrCreate | hooks | A It builds a query from the |
preventChanges | hooks | Prevents Supports dot.notation for nested fields. |
setData | hooks | Sets a property on each item in |
setField | hooks | Sets a field on the hook context (e.g. |
softDelete | hooks | Marks items as deleted instead of physically removing them. On |
transformData | hooks | Transforms each item in |
traverse | hooks | Recursively walks and transforms fields in record(s) using |
createMany | utils | Creates all given items with a single If the service does not allow multi creating (its |
getDataIsArray | utils | Normalizes |
mutateData | utils | Applies a transformer function to each item in |
patchBatch | utils | Batch patching utility that takes an array of items to be changed and returns an array of arguments to be called with the This utility is useful when you need to patch multiple items with varying data in as few requests as possible. |
patchMany | utils | Patches all items matching If the service does not allow multi patching (its The |
zipDataResult | utils | Pairs each item in |
resolve | resolvers | Combines |
resolveData | resolvers | Resolves and transforms |
defaults | transformers | Sets default values on an item for fields that are |
lowercase | transformers | Transforms the specified fields of an item to lowercase. |
omit | transformers | Omit the specified fields from an item. |
parseDate | transformers | Parses the specified fields of an item into Date objects. |
pick | transformers | Picks the specified fields from an item. |
setNow | transformers | Sets the specified fields of an item to the current date and time. |
trim | transformers | Trims the specified fields of an item. |
See all tags for the full vocabulary.
