MongoSchema.tryFindOne

Tries to find a document in this collection. It will return a default value if the document could not be found.

  1. 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)
    mixintemplate MongoSchema()
    static
    typeof(this)
    tryFindOne
    (
    Query!(typeof(this)) query
    ,)
  4. typeof(this) tryFindOne(T query, typeof(this) defaultValue)

Meta