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

Method orWhere

packages/sql/src/query/QueryBuilder.ts:1669–1674  ·  view source on GitHub ↗
(
    cond: QBFilterQuery<Entity, RootAlias, Context, RawAliases> | string | RawQueryFragment,
    params?: any[],
  )

Source from the content-addressed store, hash-verified

1667 */
1668 orWhere(cond: string | RawQueryFragment, params?: any[]): this;
1669 orWhere(
1670 cond: QBFilterQuery<Entity, RootAlias, Context, RawAliases> | string | RawQueryFragment,
1671 params?: any[],
1672 ): this {
1673 return this.where(cond as any, params, '$or');
1674 }
1675
1676 /**
1677 * Adds an ORDER BY clause to the query, replacing any existing order.

Callers

nothing calls this directly

Calls 1

whereMethod · 0.95

Tested by

no test coverage detected