You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+16Lines changed: 16 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -96,6 +96,22 @@ cursor
96
96
97
97
For secure requests, you may need to add some more options; see the "AWS, TLS and Erlang SSL ciphers" section below.
98
98
99
+
Failing operations return a `{:error, error}` tuple where `error` is a
100
+
`Mongo.Error` object:
101
+
102
+
```elixir
103
+
{:error,
104
+
%Mongo.Error{
105
+
code:13435,
106
+
error_labels: [],
107
+
host:nil,
108
+
message:"not master and slaveOk=false",
109
+
resumable:true,
110
+
retryable_reads:true,
111
+
retryable_writes:true
112
+
}}
113
+
```
114
+
99
115
### Connection pooling
100
116
The driver supports pooling by DBConnection (2.x). By default `mongodb_driver` will start a single
101
117
connection, but it also supports pooling with the `:pool_size` option. For 3 connections add the `pool_size: 3` option to `Mongo.start_link` and to all
0 commit comments