findSingle

Finds a single document.

static if(isWeb)
T
findSingle
(
T
TQuery
)
(
string collection
,
TQuery query
)

Parameters

collection string

The mongo db collection.

query TQuery

The find query.

Return Value

Type: T

Returns a single document result if found.

Meta