MongoSchema.findOneOrThrow

Tries to find one document in the collection.

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

Throws

DocumentNotFoundException if not found

Meta