All Downloads are FREE. Search and download functionalities are using the official Maven repository.

nbcp.myoql.db.mongo.enums.UpdateOperatorEnum.kt Maven / Gradle / Ivy

The newest version!
package nbcp.myoql.db.mongo.enums

/**
 * https://docs.mongodb.com/manual/reference/operator/update-array/
 */
enum class UpdateArrayOperatorEnum(val key:String, val value: String = "") {
    `SET`("\$set","$"),
    `SET_ALL`("\$setAll","\$[]"),
    `SET_WITH_FILTER`("\$setWithFilter", "$[<>]"),
    ADD_TO_SET("addToSet"),
    POP("pop"),
    PULL("pull"),
    PUSH("push"),
    PULL_ALL("pullAll");



    override fun toString(): String {
        return this.key;
    }
}






© 2015 - 2024 Weber Informatics LLC | Privacy Policy