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

Method isNotEmptyObject

packages/sql/src/query/QueryBuilder.ts:2184–2184  ·  view source on GitHub ↗
(obj: Dictionary)

Source from the content-addressed store, hash-verified

2182
2183 const schema = this.getSchema(this.mainAlias);
2184 const isNotEmptyObject = (obj: Dictionary) => Utils.hasObjectKeys(obj) || RawQueryFragment.hasObjectFragments(obj);
2185
2186 Utils.runIfNotEmpty(
2187 () => this.helper.appendQueryCondition(this.type, this.#state.cond, qb),

Callers

nothing calls this directly

Calls 2

hasObjectKeysMethod · 0.80
hasObjectFragmentsMethod · 0.80

Tested by

no test coverage detected