mongodb / de.comhix.database.dao.test / MockQuery

MockQuery

open class MockQuery<Type> : Query<Type>

Author
Benjamin Beeker

Constructors

<init>

MockQuery(vararg data: Type)
MockQuery(data: Collection<Type> = Lists.newArrayList())

Functions

find

open suspend fun find(): Type?

limit

open fun limit(limit: Int): Query<Type>

order

open fun order(field: String): Query<Type>

query

open suspend fun query(): QueryResult<Type>

skip

open fun skip(skip: Int): Query<Type>

with

open fun <AllowedValueType> with(field: String, operation: Operation<AllowedValueType>, value: AllowedValueType): Query<Type>