MongoSchema.upsert

Updates a document or inserts it when not existent. Shorthand for update(..., UpdateFlags.upsert)

mixintemplate MongoSchema()
static
void
upsert
(
T
U
)
(,,
UpdateFlags options = UpdateFlags.upsert
)

Meta