MongoSchema.tryFindById

Tries to find a document by the _id field and returns a Nullable which isNull if it could not be found. Otherwise it will be the document wrapped in the nullable.

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

Meta