Skip to content

Commit 4b64c2a

Browse files
committed
Merge remote-tracking branch 'origin/master'
2 parents 6027f6c + c940f8a commit 4b64c2a

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,22 @@ cursor
9696

9797
For secure requests, you may need to add some more options; see the "AWS, TLS and Erlang SSL ciphers" section below.
9898

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+
99115
### Connection pooling
100116
The driver supports pooling by DBConnection (2.x). By default `mongodb_driver` will start a single
101117
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

Comments
 (0)