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

Method toTuple

packages/core/src/entity/PolymorphicRef.ts:15–17  ·  view source on GitHub ↗

Returns `[discriminator, ...idValues]` tuple suitable for column-level expansion.

()

Source from the content-addressed store, hash-verified

13
14 /** Returns `[discriminator, ...idValues]` tuple suitable for column-level expansion. */
15 toTuple(): unknown[] {
16 return [this.discriminator, ...Utils.asArray(this.id)];
17 }
18}

Callers 2

nativeInsertManyFunction · 0.80
nativeUpdateManyFunction · 0.80

Calls 1

asArrayMethod · 0.80

Tested by

no test coverage detected