Home > @infiniteobjects/models > Repository > upsert
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>;
This is will eventually replace createOrUpdate