insertSingle

Inserts a single document.

static if(isWeb)
void
insertSingle
(
T
)
(
string collection
,)

Parameters

collection string

The mongo db collection.

document T

The document to insert.

Meta