MongoSchema.tryFindOne

Tries to find a document in this collection. It will return a Nullable which isNull if the document could not be found. Otherwise it will be the document wrapped in the nullable.

  1. Nullable!(typeof(this)) tryFindOne(Query!(typeof(this)) query)
    mixintemplate MongoSchema()
    static
    Nullable!(typeof(this))
    tryFindOne
    (
    Query!(typeof(this)) query
    )
  2. Nullable!(typeof(this)) tryFindOne(T query)
  3. typeof(this) tryFindOne(Query!(typeof(this)) query, typeof(this) defaultValue)
  4. typeof(this) tryFindOne(T query, typeof(this) defaultValue)

Meta