Skip to content

Commit dca75f0

Browse files
Add Alert About Save With Save Operators (#54)
1 parent 02a3d2d commit dca75f0

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@
3030

3131
This is a DynamoDB plugin for [@techmmunity/symbiosis](https://github.com/techmmunity/symbiosis).
3232

33+
[![Discord Community](https://img.shields.io/badge/discord%20community-5865F2?style=for-the-badge&labelColor=5865F2&logo=discord&logoColor=ffffff)](https://discord.gg/TakYksUzzZ)
34+
[![Docs](https://img.shields.io/badge/📄%20documentation-01d2ce?style=for-the-badge)](https://symbiosis.techmmunity.com.br)
35+
3336
## Installation
3437

3538
With yarn
@@ -54,6 +57,8 @@ DynamoDB has a very different way of modeling data compared to traditional SQL d
5457

5558
### Recommended Topics
5659

60+
- [DynamoDB Introduction - Geeks For Geeks](https://www.geeksforgeeks.org/dynamodb-introduction/)
61+
- [DynamoDB Introduction](https://medium.com/imaginelearning/getting-started-with-dynamodb-d147ed9e629e)
5762
- [DynamoDB Data Modeling](https://codeburst.io/dynamodb-data-modeling-7f11950b25bf)
5863
- [An introduction to DynamoDB data modeling](https://blog.theodo.com/2021/04/introduction-to-dynamo-db-modeling/)
5964
- [Querying child relationships](https://stackoverflow.com/questions/63755975/modelling-parent-child-subchild-relationships-in-dynamodb)

src/lib/repository/index.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,12 @@ export class Repository<Entity> extends BaseRepository<
5353
}
5454

5555
/**
56-
* This function **CREATE** a new record if a record **WITH THE SAME ID** doesn't
56+
* - This function **CREATE** a new record if a record **WITH THE SAME ID** doesn't
5757
* exists, **BUT** also **REPLACE** a record if it has the same ID.
5858
*
59+
* - This function **DOES NOT** accept _SaveOperators_, if you want to use they,
60+
* use the **upsert** function instead
61+
*
5962
* @param data The entity data that you want to save to the database
6063
* @param options Options for this operation
6164
* @returns The entity as it's saved on the database

0 commit comments

Comments
 (0)