client-ts icon indicating copy to clipboard operation
client-ts copied to clipboard

In next version id is not properly added to data or typed

Open 50BytesOfJohn opened this issue 1 year ago • 0 comments

Describe the bug

Hey, while using the next version of xata client I found out that after doing a select query, get first etc. returned data is typed in the way that id is available. But whenever I log the data or try to access id, it is not available.

To Reproduce

Just make a normal read query and check the result and type with next version of xata client.

Expected behavior

Either id is defined in result, or id is removed from the type. I personally think that leaving id field is good idea, as using xata_id or doing it manually seems like an issue for me.

Software version

"@xata.io/client": "0.0.0-next.v0b9131efdfa1340c28d4ce9bd73d6c4854e7c140",

Additional context

Nope

50BytesOfJohn avatar May 30 '24 13:05 50BytesOfJohn