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-zod
Not every request in a backend server is a simple database read. Some involve complex operations like joins.
const users = pgTable('users', { id: t.serial().primaryKey(), name: t.string() }); const posts = pgTable('posts', { id: t.serial().primaryKey(), user: t.string().references(() => users.id); content: t.string() }); const userPosts = createSelectSchema(users, { ...joinedWith(posts) });
The above snippet is only an example. Such a feature would be great to use!
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Feature hasn't been suggested before.
Describe the enhancement you want to request
Not every request in a backend server is a simple database read. Some involve complex operations like joins.
The above snippet is only an example. Such a feature would be great to use!
The text was updated successfully, but these errors were encountered: