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
No response
this code has type error since first.someDate is possibly undefined
export const tbl = pgTable("tbl", { id: uuid("id").defaultRandom().primaryKey(), someDate: timestamp("someDate").notNull().defaultNow(), }); const [first] = drizzle.select().from(tbl); console.log(first.someDate.getTime())
I expect this code to not give type error since it has not null constraint
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?No response
Describe the Bug
this code has type error since first.someDate is possibly undefined
Expected behavior
I expect this code to not give type error since it has not null constraint
Environment & setup
No response
The text was updated successfully, but these errors were encountered: