Description
I believe the Node.JS SDK suffers from inconsistent types :
// Returns `MutateInResult`, missing the `MutationToken`
|
cb.collection('foo').mutateIn(docKey, [MutateInSpec.replace('field', value)]);
|
|
// Returns `MutationResult`, which rightfully includes the `MutationToken`
|
cb.collection('foo').replace(docKey, value);
|
|
// Returns `MutationResult`, which include the `Cas`, probably wrongfully ?
|
cb.collection('foo').remove(docKey);
|
PS : I did not mark this as a bug since it's not a runtime error, but I still prevent you from accessing data that is probably there.
Attachments
Issue Links
- duplicates
-
JSCBC-1126 Add mutation token to MutateInResult
- Closed