MongoSchema.findOneOrThrow

Tries to find one document in the collection.

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

Throws

DocumentNotFoundException if not found

Meta