MongoSchema.findOne

Finds one element using a query.

  1. typeof(this) findOne(Query!(typeof(this)) query)
  2. typeof(this) findOne(T query)
    mixintemplate MongoSchema()
    static
    typeof(this)
    findOne
    (
    T
    )
    ()

Throws

DocumentNotFoundException if not found

Meta