Skip to content

Commit a73e3d6

Browse files
committed
chore: extended the documentation about compression, part 2
1 parent b749b56 commit a73e3d6

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
## Features
1212

13-
- supports MongoDB versions 4.x, 5.x, 6.x
13+
- supports MongoDB versions 4.x, 5.x, 6.x, 7.x
1414
- connection pooling ([through DBConnection 2.x](https://github.com/elixir-ecto/db_connection))
1515
- streaming cursors
1616
- performant ObjectID generation
@@ -551,7 +551,11 @@ The driver supports two compressors
551551

552552
To activate zstd compression, simply add `{:ezstd, "~> 1.1"}` to the dependencies of your `mix.exs` file.
553553
The driver will provide the related code. After activating the zstd compressor can be used by appending
554-
the `compressors=zstd` to the URL connection string.
554+
the `compressors=zstd` to the URL connection string:
555+
556+
```elixir
557+
{:ok, conn} = Mongo.start_link(url: "mongodb://localhost:27017/my_database?compressors=zstd&maxPoolSize=10")
558+
```
555559

556560
The driver uses compression for the following functions:
557561

0 commit comments

Comments
 (0)