Mongo.limits

You're seeing just the function limits, go back to Mongo module for more information.

Specs

limits(GenServer.server()) :: {:ok, BSON.document()} | {:error, Mongo.Error.t()}

Returns the limits of the database.

Example

{:ok, top} = Mongo.start_link(...)
Mongo.limits(top)

{:ok, %{
   compression: nil,
   logical_session_timeout: 30,
   max_bson_object_size: 16777216,
   max_message_size_bytes: 48000000,
   max_wire_version: 8,
   max_write_batch_size: 100000,
   read_only: false
}}