mongo/utils

Types

pub type FindOption {
  Skip(Int)
  Limit(Int)
  Sort(value.Value)
  Projection(value.Value)
}

Constructors

  • Skip(Int)
  • Limit(Int)
  • Sort(value.Value)
  • Projection(value.Value)
pub type MongoError {
  MongoError(code: Int, msg: String, source: value.Value)
}

Constructors

  • MongoError(code: Int, msg: String, source: value.Value)
pub type UpdateOption {
  Upsert
  ArrayFilters(List(value.Value))
}

Constructors

  • Upsert
  • ArrayFilters(List(value.Value))

Constants

pub const default_error: MongoError = MongoError(
  code: -16,
  msg: "",
  source: value.Null,
)
Search Document