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

Method andWhere

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

Source from the content-addressed store, hash-verified

1641 */
1642 andWhere(cond: string | RawQueryFragment, params?: any[]): this;
1643 andWhere(
1644 cond: QBFilterQuery<Entity, RootAlias, Context, RawAliases> | string | RawQueryFragment,
1645 params?: any[],
1646 ): this {
1647 return this.where(cond as any, params, '$and');
1648 }
1649
1650 /**
1651 * Adds an OR WHERE clause to the query using an object condition.

Callers 3

applyFiltersMethod · 0.95
applyJoinedFiltersMethod · 0.95

Calls 1

whereMethod · 0.95

Tested by

no test coverage detected