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

Method unionAll

packages/sql/src/query/QueryBuilder.ts:2749–2751  ·  view source on GitHub ↗

* Combines the current query with one or more other queries using `UNION ALL`. * All queries must select the same columns. Returns a `QueryBuilder` that * can be used with `$in`, passed to `qb.from()`, or converted via `.getQuery()`, * `.getParams()`, `.toQuery()`, `.toRaw()`, etc. *

(...others: (QueryBuilder<any> | NativeQueryBuilder)[])

Source from the content-addressed store, hash-verified

2747 * ```
2748 */
2749 unionAll(...others: (QueryBuilder<any> | NativeQueryBuilder)[]): QueryBuilder<Entity> {
2750 return this.buildUnionQuery('union all', others);
2751 }
2752
2753 /**
2754 * Combines the current query with one or more other queries using `UNION` (with deduplication).

Calls 1

buildUnionQueryMethod · 0.95

Tested by

no test coverage detected