Skip to content

Commit

Permalink
fix: add support from mongodb 3.6 with warning note
Browse files Browse the repository at this point in the history
  • Loading branch information
harsh-2711 committed Dec 21, 2023
1 parent 48a0808 commit b3592a9
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test-module.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
strategy:
matrix:
go-version: ['1.18', '1.19', '1.20', '1.21']
mongodb-version: ['4.4', '5.0', '6.0', '7.0']
mongodb-version: ['4.4', '5.0', '6.0', '7.0'] # add 3.6 as well after fixing the tests (collection creation)
steps:
- name: Checkout code
uses: actions/checkout@v4
Expand Down
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,11 @@

## Requirements
- Go 1.18 or higher.
- MongoDB 4.4 and higher.
- MongoDB 3.6 and higher.

> [!WARNING]
> For MongoDB version **<4.4**, please create the collection in MongoDB before creating an `EntityMongoModel` using `mgod` for the same.
> Refer to [this MongoDB docs](https://www.mongodb.com/docs/manual/reference/limits/#operations) for more information.
## Installation
```
Expand Down
7 changes: 6 additions & 1 deletion docs/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,12 @@ title: Installation
## Requirements

- Go 1.18 or higher
- MongoDB 4.4 and higher
- MongoDB 3.6 and higher

:::warning
For MongoDB version **<4.4**, please create the collection in MongoDB before creating an `EntityMongoModel` using `mgod` for the same.
Refer to [this MongoDB docs](https://www.mongodb.com/docs/manual/reference/limits/#operations) for more information.
:::

## Installation

Expand Down

0 comments on commit b3592a9

Please sign in to comment.