Cannot use json: true in Transaction.run query options #374
Labels
api: spanner
Issues related to the googleapis/nodejs-spanner API.
priority: p2
Moderately-important priority. Fix may not be included in next release.
🚨
This issue needs some love.
type: bug
Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
It appears
transaction.run
ignores thejson
boolean that can be passed into query options. Is this intended? Seeing as transaction.read and database.run works with query.json, I expectedtransaction.run
to also allow this flag.Environment details
@google-cloud/spanner
version: 2.0.0Steps to reproduce
transaction.run
PartialResultStream
doesn't receive query options in transaction.jsnodejs-spanner/src/transaction.js
Lines 699 to 726 in 01602ab
It seems like PartialResultStream just needs the additional arg as written in TransactionRequest.
transaction.run
works as expected when the query options are passed in.nodejs-spanner/src/transaction-request.js
Lines 225 to 228 in 01602ab
The text was updated successfully, but these errors were encountered: