Mr.T 🐻⛓
Explore posts from serversTTCTheo's Typesafe Cult
•Created by Mr.T 🐻⛓ on 10/25/2023 in #questions
Error on TRPC while fetching data inside Auth.ts
I ended up getting rid of
api.
and just did the call from drizzle directly, this works..4 replies
TTCTheo's Typesafe Cult
•Created by Mr.T 🐻⛓ on 10/25/2023 in #questions
Error on TRPC while fetching data inside Auth.ts
Yeh basically it seems like any query within Auth.ts file gets rejected, but the error message is quite vague and it's gonna be hard to debug :/
4 replies
TTCTheo's Typesafe Cult
•Created by Mr.T 🐻⛓ on 10/10/2023 in #questions
Why do I have to check if function is null inside an if?
Smart! Thanks for your help!
6 replies
DTDrizzle Team
•Created by Mr.T 🐻⛓ on 9/25/2023 in #help
Can't filter using 'query' when relation is one to one
Ow thank you, around that's a shame though, but I can always make them as "many" and get the first index I guess :/ not ideal though.. Do you have other solution in mind?
4 replies
DTDrizzle Team
•Created by Mr.T 🐻⛓ on 9/16/2023 in #help
Trying to get relations from one table to another, as one-to-many but get only one value
This works fine, for me it was the relation in the schema that wasn't well made after running introspect.
A side issue I get from using queries now, is the fact that I don't see how you can chain where using that method.. Any example of using multiple
where
in accessing data using queries? Thanks a lot!23 replies