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
drizzle-orm
0.30.10
drizzle-kit
0.21.13
schema:
author: text('id') // a reference to the author id
relation:
author: one(author, {... // notice the same key as the schema "author"
query:
with: { author: true // The "author" should be the data from the author table, and not the "id" reference }
This results is type: author: (string & {what ever type the relation query is})
author: (string & {what ever type the relation query is})
When using with: sameKeyAsSchema, the types shouldn't merge. It should use the types from the with relation.
with: sameKeyAsSchema
with
No response
The text was updated successfully, but these errors were encountered:
No branches or pull requests
What version of
drizzle-orm
are you using?0.30.10
What version of
drizzle-kit
are you using?0.21.13
Describe the Bug
schema:
relation:
query:
This results is type:
author: (string & {what ever type the relation query is})
Expected behavior
When using
with: sameKeyAsSchema
, the types shouldn't merge. It should use the types from thewith
relation.Environment & setup
No response
The text was updated successfully, but these errors were encountered: