Current section

Files

Jump to
gleam_mongo src mongo@utils.erl
Raw

src/mongo@utils.erl

-module(mongo@utils).
-compile(no_auto_import).
-export_type([mongo_error/0, find_option/0, update_option/0]).
-type mongo_error() :: {mongo_error, integer(), binary(), bson@types:value()}.
-type find_option() :: {sort, bson@types:value()} |
{projection, bson@types:value()} |
{skip, integer()} |
{limit, integer()}.
-type update_option() :: upsert | {array_filters, list(bson@types:value())}.