-
Notifications
You must be signed in to change notification settings - Fork 107
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: split insert, update, upsert #693
Conversation
Codecov Report
@@ Coverage Diff @@
## master #693 +/- ##
==========================================
+ Coverage 98.85% 98.86% +0.01%
==========================================
Files 10 10
Lines 7244 7316 +72
Branches 479 440 -39
==========================================
+ Hits 7161 7233 +72
Misses 81 81
Partials 2 2
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In concept I think this is a great idea to clean up the confusion outlined in #540.
I however do not know typescript well enough to evaluate the actual code change, so I'll defer code approval to them.
@AVaksman could you provide a summary of the changes in the description, and maybe a before/after? |
Currently functions |
Gentle ping |
src/index.ts
Outdated
* // blobs, and lists. | ||
* // | ||
* // Notice that we are providing an incomplete key. After saving, the | ||
* original |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Formatting issue here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Addressed, thanks.
src/index.ts
Outdated
* // Save a single entity using a provided name instead of auto-generated ID. | ||
* // | ||
* // Here we are providing a key with name instead of an ID. After saving, | ||
* the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Formatting issue.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Addressed, thanks.
src/index.ts
Outdated
* // Here we are providing a key with name instead of an ID. After saving, | ||
* the | ||
* // original Key object used to save will be updated to contain the path | ||
* with |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Formatting issue.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Addressed, thanks.
* }; | ||
* | ||
* datastore.save(entity, (err, apiResponse) => {}); | ||
* //- |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
New line above here, please.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added, thanks.
Thank you! |
Fixes #540