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

Method unwrap

packages/sql/src/query/ObjectCriteriaNode.ts:180–185  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

178 }
179
180 override unwrap(): any {
181 return Utils.getObjectQueryKeys(this.payload).reduce((o, field) => {
182 o[field as string] = this.payload[field].unwrap();
183 return o;
184 }, {} as Dictionary);
185 }
186
187 override willAutoJoin(qb: IQueryBuilder<T>, alias?: string, options?: ICriteriaNodeProcessOptions): boolean {
188 const nestedAlias = qb.getAliasForJoinPath(this.getPath(options), options);

Callers 1

processMethod · 0.45

Calls 2

reduceMethod · 0.80
getObjectQueryKeysMethod · 0.80

Tested by

no test coverage detected