MongoSchema.tryFindById

Tries to find a document by the _id field and returns a default value if it could not be found.

  1. Nullable!(typeof(this)) tryFindById(BsonObjectID id)
  2. Nullable!(typeof(this)) tryFindById(string id)
  3. typeof(this) tryFindById(BsonObjectID id, typeof(this) defaultValue)
    mixintemplate MongoSchema()
    static
    typeof(this)
    tryFindById
    (
    BsonObjectID id
    ,)
  4. typeof(this) tryFindById(string id, typeof(this) defaultValue)

Meta