MongoSchema.upsert

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

  1. void upsert(Query!(typeof(this)) query, U upsert, UpdateFlags options)
    mixintemplate MongoSchema()
    static
    void
    upsert
    (
    U
    )
    (
    Query!(typeof(this)) query
    ,,
    UpdateFlags options = UpdateFlags.upsert
    )
  2. void upsert(T query, U update, UpdateFlags options)

Meta