Packages
gleam_mongo
0.4.0
0.18.1
retired
0.18.0
retired
0.17.0
retired
0.16.0
retired
0.15.1
retired
0.15.0
retired
0.14.0
retired
0.13.0
retired
0.12.0
retired
0.11.0
retired
0.10.0
retired
0.9.0
retired
0.8.0
retired
0.7.0
retired
0.6.0
retired
0.5.0
retired
0.4.0
retired
0.3.0
0.2.0
retired
0.1.3
retired
0.1.2
retired
0.1.1
retired
0.1.0
retired
A mongodb driver for gleam
Retired package: Renamed - Republished as mungo
Current section
Files
Jump to
Current section
Files
src/mongo/utils.gleam
import bson/types
pub type MongoError {
MongoError(code: Int, msg: String, source: types.Value)
}
pub const default_error = MongoError(code: -16, msg: "", source: types.Null)
pub type FindOption {
Sort(types.Value)
Projection(types.Value)
Skip(Int)
Limit(Int)
}
pub type UpdateOption {
Upsert
ArrayFilters(List(types.Value))
}