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)
  2. void upsert(T query, U update, UpdateFlags options)
    mixintemplate MongoSchema()
    static
    void
    upsert
    (
    T
    U
    )
    (,,
    UpdateFlags options = UpdateFlags.upsert
    )

Meta