Skip to content
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

Trasaction get operation type error #1308

Closed
kostasb opened this issue Jan 5, 2024 · 2 comments · Fixed by #1312
Closed

Trasaction get operation type error #1308

kostasb opened this issue Jan 5, 2024 · 2 comments · Fixed by #1312
Labels
bug Something isn't working needs-triage

Comments

@kostasb
Copy link
Contributor

kostasb commented Jan 5, 2024

Version: @xata.io/[email protected]

Transaction get operation raises a type error:

const result = await xata.transactions.run([
  { get: { table: "prices", id: "rec_cm83un8m922cq6bl2i30", columns: ["id", "original_price"] } },
]);

Object literal may only specify known properties, and 'get' does not exist in type 'NarrowRaw<TransactionOperation<DatabaseSchema, keyof DatabaseSchema>>'.(2353)

image

Reported on Discord.

@kostasb kostasb added the bug Something isn't working label Jan 5, 2024
@SferaDev
Copy link
Member

SferaDev commented Jan 8, 2024

Duplicated of #964

We never really implemented it 🥲

@kostasb
Copy link
Contributor Author

kostasb commented Jan 8, 2024

Thank you. Closing this one but it would be good add #964 to our priotiries otherwise we should remove it from the docs https://xata.io/docs/sdk/transaction#gets.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs-triage
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants