-
Notifications
You must be signed in to change notification settings - Fork 17
Add support for Document:m* methods #224
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
Conversation
Codecov Report
@@ Coverage Diff @@
## 5.x #224 +/- ##
==========================================
+ Coverage 98.15% 98.27% +0.12%
==========================================
Files 17 17
Lines 1953 2032 +79
Branches 556 584 +28
==========================================
+ Hits 1917 1997 +80
+ Misses 36 35 -1
Continue to review full report at Codecov.
|
src/Collection.js
Outdated
| }, | ||
| self = this; | ||
|
|
||
| if (!Array.isArray(documents)) { |
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.
open question: would it be simpler to send this error in the callback? Else, the end-user will have to write somehting like
try {
collection.mcreate(docs, function (error, response) {
if (error) {
// 1st error handling
}
});
}
catch (e) {
// 2nd error handling
}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.
Indeed, I will update this and let you know 👍
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.
Done :)
Introduces
fix https://github.com/kuzzleio/kuzzle-sdk/issues/6