stack

Home > @infiniteobjects/models > Repository > createOrUpdate

Repository.createOrUpdate property

Creates or updates a DB Entry

Signature:

createOrUpdate: (entry: EntityType, findFn?: (entry: EntityType) => Promise<EntityType | null>) => Promise<EntityType>;