-
Notifications
You must be signed in to change notification settings - Fork 4
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
Add document:upsert #56
Conversation
lib/src/controllers/document.dart
Outdated
@@ -445,7 +447,8 @@ class DocumentController extends KuzzleController { | |||
index: index, | |||
collection: collection, | |||
uid: id, | |||
body: body, | |||
body: changes, |
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.
The body contains both changes
and defaults
lib/src/kuzzle/request.dart
Outdated
@@ -200,7 +203,9 @@ class KuzzleRequest { | |||
if (source != null) { | |||
map['source'] = source; | |||
} | |||
|
|||
if (defaults != null) { | |||
map['defaults'] = defaults; |
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.
I'm not sure to understand what this is suppose to do but defaults
is part of the body and it looks like you put it in the arguments
| `_source` | <pre>Map<String, dynamic></pre> | Updated document (if `source` option set to true) | | ||
| `_id` | <pre>String</pre> | ID of the udated document | | ||
| `_version` | <pre>int</pre> | Version of the document in the persistent data storage | | ||
| `created` | <pre>bool</pre> |
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.
Missing description for created
Co-authored-by: Adrien Maret <[email protected]>
What does this PR do?
Add document:upsert API action #55