query
Reads or rewrites params.query.
| Name | Category | Description |
|---|---|---|
cache | hooks | Caches |
disablePagination | hooks | Disables pagination when |
findOrCreate | hooks | A It builds a query from the |
setField | hooks | Sets a field on the hook context (e.g. |
setQueryDefaults | hooks | Adds default properties to |
setSlug | hooks | Extracts URL route parameters (slugs) and sets them on |
softDelete | hooks | Marks items as deleted instead of physically removing them. On |
transformQuery | hooks | Transforms |
traverse | hooks | Recursively walks and transforms fields in record(s) using |
addToQuery | utils | Safely merges properties into a Feathers query object. If a property already exists
with a different value, it wraps both in a The added query narrows the target — every condition is kept, so the result matches
at most what the target matched. Two conditions on the same property are therefore
intersected, never unioned: adding The query filters |
chunkFind | utils | Use This function is useful for processing large datasets in batches without loading everything into memory at once. It uses pagination to fetch results in chunks, yielding each page's data array. |
dotifyQuery | utils | Converts the nested properties of a Feathers query into dot notation —
The conversion is query-aware rather than a generic object flatten:
A value is only treated as a path when it is a non-empty plain object with at
least one non- Use Nothing is ever dropped when two paths collide. Deep-equal values collapse
into one, operator objects with disjoint keys merge, and a genuine
contradiction is wrapped in |
eqOrIn | utils | Turns a list of values into a query value that matches any of them: a single
remaining value becomes an equality match, everything else a Deduplication compares primitives with |
iterateFind | utils | Use This function is useful for iterating over large datasets without loading everything into memory at once. It uses pagination to fetch results in chunks, allowing you to process each item as it is retrieved. |
mergeQuery | utils | Properties are combined with a logical operator rather than merged at the value
level, so the result is always a valid query: Under This is well suited to merging a client-provided query with a server-side restriction inside a hook. |
neOrNin | utils | Turns a list of values into a query value that excludes all of them: a single
remaining value becomes Deduplication compares primitives with |
nestifyQuery | utils | Converts the dot-notation properties of a Feathers query into nested objects —
The conversion is query-aware rather than a generic object unflatten:
Use Nothing is ever dropped when two keys collide. Deep-equal values collapse into
one, objects with disjoint keys merge, and a genuine contradiction is wrapped
in Caveat: this direction is best effort and not semantics-preserving on
MongoDB, where |
queryDefaults | utils | Adds default properties to a Feathers query — but only for fields the query does
not already constrain. Presence is checked with {@link queryHasProperty}, so a field
referenced anywhere (including nested in |
queryHasProperty | utils | Checks whether a Feathers query contains one or more properties — including
properties nested inside |
simplifyQuery | utils | Normalizes the logical structure of a Feathers query without changing what it
matches: empty |
sortQueryProperties | utils | Recursively normalizes a Feathers query object for order-independent comparison.
Sorts object keys and sorts arrays within This is useful for generating stable cache keys where
|
walkQuery | utils | Walks every property of a Feathers query (including nested |
resolveQuery | resolvers | Resolves and transforms |
hasQuery | guards | Type guard to check if the |
See all tags for the full vocabulary.
