-
-
Notifications
You must be signed in to change notification settings - Fork 1k
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Feature hasn't been suggested before.
- I have verified this feature I'm about to request hasn't been suggested before.
Describe the enhancement you want to request
userById: trpc.procedure.input(z.string()).query(async ({ input }) =>
db.query.userProfiles.findFirst({
where: (profile, { eq }) => eq(profile.userId, input),
}),
),
to use something like eq
, one has to either import it from drizzle-orm
or receive it as a parameter
but wouldn't it be cleaner if comparison functions were simply part of the column types? so one could just do:
where: (profile) => profile.userId.eq(input)
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request