Skip to content

Commit

Permalink
Fix transaction delete code samples (#304)
Browse files Browse the repository at this point in the history
I think there was some copy & pasting error because `record: {}`
shouldn't be there. I tested the TypeScript one, but I suppose the
Python should work the same. CC @philkra for a second pair of eyes.
  • Loading branch information
tsg authored Mar 11, 2024
1 parent 10ab1a5 commit 1370021
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions 040-Data-operations/130-transaction.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -413,13 +413,13 @@ const result = await xata.transactions.run([
{
delete: {
table: 'titles',
record: { id: 'rec_cfl4g6v00023' },
id: 'rec_cfl4g6v00023'
}
},
{
delete: {
table: 'titles',
record: { id: 'rec_cfl4g6v00056' },
id: 'rec_cfl4g6v00056'
}
},
// You can add additional operations
Expand All @@ -432,13 +432,13 @@ result = xata.records().transaction({
{
"delete": {
"table": "titles",
"record": { "id": "rec_cfl4g6v00023" }
"id": "rec_cfl4g6v00023"
}
},
{
"delete": {
"table": 'titles',
"record": { "id": "rec_cfl4g6v00056" },
"id": "rec_cfl4g6v00056"
}
},
# You can add additional operations
Expand Down

0 comments on commit 1370021

Please sign in to comment.