mongoschema.db

This module provides the database utility tools which make the whole project useful.

Members

Classes

DocumentNotFoundException
class DocumentNotFoundException

Exception thrown if a document could not be found.

Functions

register
void register(MongoCollection collection)

Binds a MongoCollection to a Schema. Can only be done once!

Mixin templates

MongoSchema
mixintemplate MongoSchema()

Mixin for functions for interacting with Mongo collections.

Structs

DocumentRange
struct DocumentRange(Schema)

Range for iterating over a collection using a Schema.

PipelineUnwindOperation
struct PipelineUnwindOperation
SchemaPipeline
struct SchemaPipeline

Meta