Browse Source

Update index.md

pull/22370/head
Engincan VESKE 11 months ago
committed by GitHub
parent
commit
69e4b51b22
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 8
      docs/en/framework/data/mongodb/index.md

8
docs/en/framework/data/mongodb/index.md

@ -309,7 +309,7 @@ public class BookService
### Transactions
MongoDB supports multi-document transactions starting from the version 4.0 and the ABP supports it. However, the [startup template](../../../solution-templates) **disables** transactions by default. If your MongoDB **server** supports transactions, you can enable the it in the *YourProjectMongoDbModule* class:
MongoDB supports multi-document transactions starting from the version 4.0 and the ABP supports it. However, the [startup template](../../../solution-templates) **disables** transactions by default. If your MongoDB **server** supports transactions, you can enable them in the *YourProjectMongoDbModule* class:
Remove the following code to enable transactions:
@ -321,9 +321,9 @@ Remove the following code to enable transactions:
- });
```
#### Create Test MongoDB in Docker to support transactions
#### Setting up a Transaction-Enabled MongoDB Replica Set in Docker
You can use below `docker-compose.yml` file to create a test MongoDB **ReplicaSet** instance that supports transactions, The connection string will be `mongodb://localhost:27017/YourProjectName?replicaSet=rs0`.
Use the following `docker-compose.yml` to create a local MongoDB Replica Set that supports transactions. The connection string will be `mongodb://localhost:27017/YourProjectName?replicaSet=rs0`.
```yaml
version: "3.8"
@ -533,4 +533,4 @@ public class MyCustomMongoDbBulkOperationProvider
* [Entities](../../architecture/domain-driven-design/entities.md)
* [Repositories](../../architecture/domain-driven-design/repositories.md)
* [Video tutorial](https://abp.io/video-courses/essentials/abp-mongodb)
* [Video tutorial](https://abp.io/video-courses/essentials/abp-mongodb)

Loading…
Cancel
Save