mongodb-driver v0.5.1 Mongo.ReadPreference View Source

Determines which servers are considered suitable for read operations

Link to this section Summary

Link to this section Types

Link to this type

t() View Source
t() :: %{
  mode:
    :primary | :secondary | :primary_preferred | :secondary_preferred | :nearest,
  tag_sets: [%{optional(String.t()) => String.t()}],
  max_staleness_ms: non_neg_integer()
}

Link to this section Functions