Support multiple mutations to one row #1507
Labels
api: bigtable
Issues related to the googleapis/nodejs-bigtable API.
priority: p3
Desirable enhancement or fix. May not be included in next release.
type: feature request
‘Nice-to-have’ improvement, new feature or different behavior or design.
Is your feature request related to a problem? Please describe.
I checked all examples and documentations but it seems I can't increment multiple columns and at the same time set other columns. I know that mutating one row is transactional which is what I'm trying to leverage.
The Java client's library seems more versatile as documented in https://cloud.google.com/bigtable/docs/aggregates#add-examples.
Checking the code, it seems this part
nodejs-bigtable/src/mutation.ts
Line 430 in e6bdb82
The
Row.increment()
was using theReadModifyWriteRow
RPC butMutateRow
RPC appears to be more versatile.Describe the solution you'd like
Instead of setting
method
inMutation
class, nesting anotherSubMutation
(tentative) class withmethod
to mimic theMutation
proto https://cloud.google.com/bigtable/docs/reference/data/rpc/google.bigtable.v2#mutation.The text was updated successfully, but these errors were encountered: