Skip to content

Commit 24a105f

Browse files
committed
chore: moved the mongodb-ecto section downwards
1 parent abb3b7d commit 24a105f

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

README.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -31,17 +31,6 @@
3131
- support for migration scripts
3232
- support for compression for zlib and zstd ([See](https://github.com/mongodb/specifications/blob/07b7649cc5c805ef4f85fccddf39226add7114e6/source/compression/OP_COMPRESSED.md))
3333

34-
## mongodb_ecto
35-
36-
The version 1.4.0 supports the [mongodb_ecto](https://github.com/elixir-mongo/mongodb_ecto) package.
37-
A series of changes are required to support the adapter. Some BSON encoders and a missing generic update function were added for the adapter.
38-
Most notably, the `find-then-modify` command functions `find_one_and_update` and `find_one_and_replace` now return appropriate
39-
`FindAndModifyResult` structs that contain additional write information otherwise neglected, which the adapter requires.
40-
41-
After upgrading the driver to version 1.4.0 you need to change the code regarding the results of
42-
* `Mongo.find_one_and_update`
43-
* `Mongo.find_one_and_replace`
44-
4534
## Usage
4635

4736
### Installation
@@ -168,6 +157,17 @@ Mongo.insert_many(top, "users", [
168157
])
169158
```
170159

160+
## mongodb_ecto
161+
162+
The version 1.4.0 supports the [mongodb_ecto](https://github.com/elixir-mongo/mongodb_ecto) package.
163+
A series of changes are required to support the adapter. Some BSON encoders and a missing generic update function were added for the adapter.
164+
Most notably, the `find-then-modify` command functions `find_one_and_update` and `find_one_and_replace` now return appropriate
165+
`FindAndModifyResult` structs that contain additional write information otherwise neglected, which the adapter requires.
166+
167+
After upgrading the driver to version 1.4.0 you need to change the code regarding the results of
168+
* `Mongo.find_one_and_update`
169+
* `Mongo.find_one_and_replace`
170+
171171
## Data Representation
172172

173173
This driver chooses to accept both maps and lists of key-value tuples when encoding BSON documents (1), but will only

0 commit comments

Comments
 (0)