How to find single record in database using trpc and drizzle?
I am trying to do a simple database lookup finding a user by a custom field discordId.
I have added that id to my drizzle schema and pushed to the database:
and now I am trying to create a trpc route for getting the info:
but I am getting an error:
looking at a similar process with prisma, the database structures are models and not simple 'consts' should the databasse structure type be automatically inferred or so I need to custom define this?
I have added that id to my drizzle schema and pushed to the database:
and now I am trying to create a trpc route for getting the info:
but I am getting an error:
looking at a similar process with prisma, the database structures are models and not simple 'consts' should the databasse structure type be automatically inferred or so I need to custom define this?