We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the bug
db.insertInto('my_table').values(<some values>) throws errors in Typescript since it expects the presence of fields and methods from XataRecord.
db.insertInto('my_table').values(<some values>)
XataRecord
To Reproduce
xata pull
xata.ts
export type MyTable = InferredTypes["my_table"]; export type MyTableRecord = MyTable & XataRecord; export type DatabaseSchema = { my_table: MyTableRecord; };
insertInto
db.insertInto('my_table').values({...myValues})
type ... is missing the following properties from type ... id, xata, getMetadata, toSerializable, and 4 more
Expected behavior
Software version
"dependencies": { "@xata.io/client": "^0.30.1", "@xata.io/kysely": "^0.2.1", "kysely": "^0.27.4", "zod": "^3.23.8", "zod-validation-error": "^3.4.0" },
Additional context
The docs only show an example for selecting a table entry. An insertInto example would be a great addition.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Describe the bug
db.insertInto('my_table').values(<some values>)
throws errors in Typescript since it expects the presence of fields and methods fromXataRecord
.To Reproduce
xata pull
to codegen thexata.ts
fileExample code snippet from generated file:
insertInto
statement with Kyselytype ... is missing the following properties from type ... id, xata, getMetadata, toSerializable, and 4 more
XataRecord
Expected behavior
XataRecord
properties to insert into a tableSoftware version
Additional context
The docs only show an example for selecting a table entry. An insertInto example would be a great addition.
The text was updated successfully, but these errors were encountered: