stack

Home > @infiniteobjects/models > Repository > upsert

Repository.upsert property

This API is provided as a beta preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.

Upsert an entity in the database

Signature:

upsert: (doc: EntityType, merge?: boolean) => Promise<EntityType>;

Remarks

This is will eventually replace createOrUpdate