✨ feat: unify API options structure and enhance lookup handling across collections
This commit is contained in:
@@ -242,7 +242,7 @@ function cloneEntry<T>(entry: T): T {
|
||||
}
|
||||
|
||||
function applyAggregate(entry: Record<string, unknown>, options?: ApiOptions): Record<string, unknown> {
|
||||
const rawAggregate = options?.params?.aggregate
|
||||
const rawAggregate = options?.aggregate || options?.params?.aggregate
|
||||
if (!rawAggregate) return entry
|
||||
|
||||
const aggregates = Array.isArray(rawAggregate)
|
||||
|
||||
Reference in New Issue
Block a user