ElonMask
ElonMask
TTCTheo's Typesafe Cult
Created by ps_iclimbthings on 9/19/2024 in #questions
Missing API Key - server callback
i think this channel is more of a tech-general kind, u prob should've asked in https://discord.com/channels/966627436387266600/1102510616326967306 they seem to answer every query over there.
9 replies
TTCTheo's Typesafe Cult
Created by ps_iclimbthings on 9/19/2024 in #questions
Missing API Key - server callback
ngl kinda sucked that it stopped working, but the team was quick to help. julius helped upgrade the library and even helped w an issue caused by a separate lib i was using. doubt any other service would’ve bothered.
9 replies
TTCTheo's Typesafe Cult
Created by ps_iclimbthings on 9/19/2024 in #questions
Missing API Key - server callback
thankyou
9 replies
TTCTheo's Typesafe Cult
Created by ps_iclimbthings on 9/19/2024 in #questions
Missing API Key - server callback
worked!
9 replies
TTCTheo's Typesafe Cult
Created by ps_iclimbthings on 9/19/2024 in #questions
Missing API Key - server callback
any luck?
9 replies
TTCTheo's Typesafe Cult
Created by ElonMask on 4/3/2024 in #questions
ai prompting doubt
thnx a ton, ill go through it ❤️
4 replies
TTCTheo's Typesafe Cult
Created by Davidguy on 2/21/2024 in #questions
Prisma filtering many-to-many query on exact number of relations
add include and all btw
6 replies
TTCTheo's Typesafe Cult
Created by Davidguy on 2/21/2024 in #questions
Prisma filtering many-to-many query on exact number of relations
const REQUIRED_TAGS = ['tag1', 'tag2'];

const posts = await db.post.findMany({
where: {
AND: REQUIRED_TAGS.map((tag) => ({
tags: {
some: {
name: tag,
},
},
})),
NOT: {
tags: {
some: {
NOT: {
name: {
in: REQUIRED_TAGS,
},
},
},
},
},
},
})
const REQUIRED_TAGS = ['tag1', 'tag2'];

const posts = await db.post.findMany({
where: {
AND: REQUIRED_TAGS.map((tag) => ({
tags: {
some: {
name: tag,
},
},
})),
NOT: {
tags: {
some: {
NOT: {
name: {
in: REQUIRED_TAGS,
},
},
},
},
},
},
})
try this
6 replies
TTCTheo's Typesafe Cult
Created by ElonMask on 2/15/2024 in #questions
using prisma along with drizzle/kysley
i managed to generate the types in drizzle by pulling from db, wrote an existing query, still prisma generated one managed to do better kek. fuck im so bad at raw sql
13 replies
TTCTheo's Typesafe Cult
Created by ElonMask on 2/15/2024 in #questions
using prisma along with drizzle/kysley
yea, i used this, spent some time w. kysley and realised im not good enough w. raw sql lmao
13 replies
TTCTheo's Typesafe Cult
Created by ElonMask on 2/15/2024 in #questions
using prisma along with drizzle/kysley
Yes, drizzle was my first choice even. But couldnt find any extension or anything which can generate types from prisma schema
13 replies
TTCTheo's Typesafe Cult
Created by plaZma on 2/16/2024 in #questions
Try signing in with a different account.
ah
22 replies
TTCTheo's Typesafe Cult
Created by plaZma on 2/16/2024 in #questions
Try signing in with a different account.
lolol
22 replies
TTCTheo's Typesafe Cult
Created by plaZma on 2/16/2024 in #questions
Try signing in with a different account.
aah nice : )
22 replies
TTCTheo's Typesafe Cult
Created by plaZma on 2/16/2024 in #questions
Try signing in with a different account.
github *
22 replies
TTCTheo's Typesafe Cult
Created by plaZma on 2/16/2024 in #questions
Try signing in with a different account.
share gh
22 replies
TTCTheo's Typesafe Cult
Created by ElonMask on 2/15/2024 in #questions
using prisma along with drizzle/kysley
prob drizzle then
13 replies