count

@GenerateBridge
open fun count(): Uni<Long>

Counts the number of this type of entity in the database.

Return

the number of this type of entity in the database.

See also


@GenerateBridge
open fun count(query: String, vararg params: Any?): Uni<Long>

Counts the number of this type of entity matching the given query, with optional indexed parameters.

Return

the number of entities counted.

Parameters

query

a query string

params

optional sequence of indexed parameters

See also


@GenerateBridge
open fun count(query: String, params: Map<String, Any?>): Uni<Long>

Counts the number of this type of entity matching the given query, with named parameters.

Return

the number of entities counted.

Parameters

query

a query string

params

Map of named parameters

See also


@GenerateBridge
open fun count(query: String, params: Parameters): Uni<Long>

Counts the number of this type of entity matching the given query, with named parameters.

Return

the number of entities counted.

Parameters

query

a query string

params

Parameters of named parameters

See also


@GenerateBridge
open fun count(query: Bson): Uni<Long>

Counts the number of this type of entity matching the given query

Return

the number of entities counted.

Parameters

query

a Bson query

See also