Viszy A
Explore posts from serversTTCTheo's Typesafe Cult
•Created by Viszy A on 1/1/2024 in #questions
Nested query fails because query by id is different between nested relations
I fell into this nested query and I'm not sure if I'm setting of the db right
I have a User > Company > Testimonal relation which is tied together by the cuid()
But when I check the data in prisma studio, the Company @id is different thatn the id in User.
So I'm guessing that is the issue, but when I try to use where: { } by something else like userID instead of id
It says id is required, and it doesn't work.
I'm honestly stuck and have no idea how to move forward.
2 replies
TTCTheo's Typesafe Cult
•Created by Viszy A on 12/30/2023 in #questions
Need help with creating a mutation that involves relations
I'm a complete beginner just started and I'm really confused on how I will create this router with the mutation with all the relations
The schema is pretty big so I'll show one relation:
So the inputed array could be with multiple "experiences"
data : {
experiences: [
{.... experience 1},
{... experience 2},
... etc
], } And I want to create a mutation that can take that entire data and input it into the profile model, and this is my attempt on it, but i have no idea on how to make it actually work
], } And I want to create a mutation that can take that entire data and input it into the profile model, and this is my attempt on it, but i have no idea on how to make it actually work
4 replies
TTCTheo's Typesafe Cult
•Created by Viszy A on 11/15/2023 in #questions
How do I actually use tRPC without using a server component
Here is the error I'm getting:
and this is concerning this file:
4 replies
TTCTheo's Typesafe Cult
•Created by Viszy A on 11/15/2023 in #questions
How do I actually use tRPC without using a server component
Here is the error I'm getting:
1 replies
TTCTheo's Typesafe Cult
•Created by Viszy A on 11/5/2023 in #questions
How do I fix this query, I was following a tutorial that doesn't use the t3 stack
I'm trying to replicate this query (shown below) into t3 stack but the "onSuccess" property doesn't match and I don't know what I should change to make this work
This is the error:
This is the client code where I call the query in
5 replies
TTCTheo's Typesafe Cult
•Created by Viszy A on 3/14/2023 in #questions
How are you supposed to use local fonts in taliwindcss
I'm not currently using the t3 stack, but how are you supposed to use locally downloaded fonts in tailwindcss.
I tried to look at the docs but they don't include anything on local fonts and an online search leads me to outdated ones.
2 replies
TTCTheo's Typesafe Cult
•Created by Viszy A on 2/13/2023 in #questions
Next Auth Google not working ('client_id is required')
Hi, just started out.
I changed all the DISCORD_CLIENT_ID and DISCORD_CLIENT_SECRET to GOOGLE_CLIENT_ID and GOOGLE_CLIENT SECRENT, in auth.ts, env.mjs, and .env
(please let me know if you need to see the files)
I get this error in local :
3 replies