MCPcopy Create free account
hub / github.com/mikro-orm/mikro-orm / processObjectParams

Method processObjectParams

packages/core/src/utils/QueryHelper.ts:91–97  ·  view source on GitHub ↗
(params: T = {} as T)

Source from the content-addressed store, hash-verified

89 }
90
91 static processObjectParams<T extends Dictionary>(params: T = {} as T): T {
92 Utils.getObjectQueryKeys(params).forEach(k => {
93 params[k as keyof T] = QueryHelper.processParams(params[k as keyof T]);
94 });
95
96 return params;
97 }
98
99 /**
100 * converts `{ account: { $or: [ [Object], [Object] ] } }`

Callers 7

finalizeMethod · 0.80
upsertMethod · 0.80
upsertManyMethod · 0.80
insertMethod · 0.80
insertManyMethod · 0.80
nativeUpdateMethod · 0.80
processParamsMethod · 0.80

Calls 2

getObjectQueryKeysMethod · 0.80
processParamsMethod · 0.80

Tested by

no test coverage detected