kmongo / org.litote.kmongo / MongoOperator

MongoOperator

enum class MongoOperator (source)

List all known mongo operators, used in string templates.

Enum Values

eq

gt

gte

lt

lte

ne

in

nin

or

and

not

nor

exists

type

mod

regex

text

search

language

caseSensitive

diacriticSensitive

where

geoWithin

geometry

box

polygon

center

centerSphere

geoIntersects

near

nearSphere

all

elemMatch

size

bitsAllSet

bitsAnySet

bitsAllClear

bitsAnyClear

comment

meta

slice

explain

hint

maxScan

maxTimeMS

max

min

orderby

returnKey

showDiskLoc

snapshot

query

natural

inc

mul

rename

setOnInsert

set

unset

currentDate

addToSet

pop

pullAll

pull

pushAll

push

each

sort

position

bit

isolated

project

match

redact

limit

skip

unwind

group

sample

geoNear

lookup

out

indexStats

setEquals

setIntersection

setUnion

setDifference

setIsSubset

anyElementTrue

allElementsTrue

cmp

abs

add

ceil

divide

exp

floor

ln

log

log10

multiply

pow

sqrt

subtract

trunc

concat

substr

toLower

toUpper

strcasecmp

arrayElemAt

concatArrays

filter

isArray

map

let

literal

dayOfYear

dayOfMonth

dayOfWeek

year

month

week

hour

minute

second

millisecond

dateToString

cond

ifNull

sum

avg

first

last

stdDevPop

stdDevSamp

binary

date

numberLong

numberDouble

numberDecimal

timestamp

options

oid

ref

id

undefined

minKey

maxKey

changeStream

replaceRoot

expr

Functions

toString

fun toString(): String

Extension Functions

from

Builds Bson for the MongoOperator and the specified expression.

infix fun MongoOperator.from(expression: Any): Bson