Vengeance
Vengeance
Explore posts from servers
TTCTheo's Typesafe Cult
Created by Vengeance on 4/22/2024 in #questions
create-t3-app next auth question
i just wanted to make sure the sub would be unique and never change (other than by me) so that it would be ok to use that as the unique identifier for my users
9 replies
TTCTheo's Typesafe Cult
Created by Vengeance on 4/22/2024 in #questions
create-t3-app next auth question
yes, thank you 🙏
9 replies
TTCTheo's Typesafe Cult
Created by Vengeance on 4/22/2024 in #questions
create-t3-app next auth question
So if someone signs in with apple, google, or custom credentials, they will all be given that unique id in sub that won't be changed unless I change it?
9 replies
TTCTheo's Typesafe Cult
Created by Galgaldas on 11/27/2023 in #questions
Theo, why you never use Docker? Why you always use Cloud based solutions?
(i think)
36 replies
TTCTheo's Typesafe Cult
Created by Galgaldas on 11/27/2023 in #questions
Theo, why you never use Docker? Why you always use Cloud based solutions?
i only brought that up cause my point is he wants to focus on coding rather than messing with his environment(s)
36 replies
TTCTheo's Typesafe Cult
Created by Galgaldas on 11/27/2023 in #questions
Theo, why you never use Docker? Why you always use Cloud based solutions?
my guess: theo is super practical and wants to ship fast, he doesnt want to spend time dicking around with docker configs and self hosting, thats the whole point of using stuff liker vercel, you never have to interface yourself with stuff like aws and you can spend more of your time building your product
36 replies
TTCTheo's Typesafe Cult
Created by Vengeance on 11/24/2023 in #questions
Go-to Backend Server
thx !
7 replies
TTCTheo's Typesafe Cult
Created by MALEV0L3NT on 10/8/2023 in #questions
React-toastify display toast from Next.js api route
you would either need to toast when the trpc procedure ends (have it wait for lambda to finish before quitting) or have lambda send a webhook to the user
9 replies
TTCTheo's Typesafe Cult
Created by JD on 12/11/2022 in #questions
How to filter the SpaceX API (mongoDB find() based) by a nested array?! Tech Test
maybe ask gpt3 kek
10 replies
TTCTheo's Typesafe Cult
Created by JD on 12/11/2022 in #questions
How to filter the SpaceX API (mongoDB find() based) by a nested array?! Tech Test
lmao
10 replies
TTCTheo's Typesafe Cult
Created by JD on 12/11/2022 in #questions
How to filter the SpaceX API (mongoDB find() based) by a nested array?! Tech Test
"query": {
"payloads": {
"$elemMatch": {
"nationalities": {
"$exists": true
}
}
}
}
"query": {
"payloads": {
"$elemMatch": {
"nationalities": {
"$exists": true
}
}
}
}
returns nothing for me O_o
10 replies
TTCTheo's Typesafe Cult
Created by JD on 12/11/2022 in #questions
How to filter the SpaceX API (mongoDB find() based) by a nested array?! Tech Test
I tried $in, $all, and $elemMatch and even $exists and none of them work for me lmao
10 replies
TTCTheo's Typesafe Cult
Created by JD on 12/11/2022 in #questions
How to filter the SpaceX API (mongoDB find() based) by a nested array?! Tech Test
Try
"query": {
"payloads.nationalities": {
"$in": ["United States"]
}
}
"query": {
"payloads.nationalities": {
"$in": ["United States"]
}
}
10 replies
TTCTheo's Typesafe Cult
Created by Lgy on 12/9/2022 in #questions
trpc with third party api
Yes you can call a third party api from tRPC, just use axios or something but that's not going to automatically make the response typesafe, you need to parse that response, tRPC makes the response of your entire procedure typesafe, it doesnt know the types coming in from someplace like jsonplaceholder unless you tell it
5 replies
TTCTheo's Typesafe Cult
Created by Vengeance on 11/16/2022 in #questions
tRPC Procedure based cache
I'll try both that and asking on discord, thanks a bunch :D
10 replies
TTCTheo's Typesafe Cult
Created by Vengeance on 11/16/2022 in #questions
tRPC Procedure based cache
Sorry, I meant cache server side, that is just for the client right?
10 replies
TTCTheo's Typesafe Cult
Created by Vengeance on 11/1/2022 in #questions
NextJS + tRPC API Logic Question
Sweet, thx
6 replies
TTCTheo's Typesafe Cult
Created by Vengeance on 11/1/2022 in #questions
NextJS + tRPC API Logic Question
Are you still able to test it outside the router like with Postman?
6 replies