Arxk
Arxk
Explore posts from servers
PPrisma
Created by Arxk on 2/17/2025 in #help-and-questions
Prisma Transaction type error
I'm getting this weird type error on a Prisma transaction https://files.arxk.io/u/8pG9CR.png
6 replies
PPrisma
Created by Arxk on 2/12/2025 in #help-and-questions
Converting a query to use TypedSQL
prisma.$transaction(data.map((match) => {
return prisma.match.update({
where: {
matchId: match.id,
},
data: {
fixtureData: match as unknown as InputJsonValue,
dateOfDay: match.date,
}
});
})
prisma.$transaction(data.map((match) => {
return prisma.match.update({
where: {
matchId: match.id,
},
data: {
fixtureData: match as unknown as InputJsonValue,
dateOfDay: match.date,
}
});
})
How would I be able to convert this to a TypedSQL query?
3 replies
PPrisma
Created by Arxk on 1/12/2025 in #help-and-questions
Prisma JSON not working with "path"
Hi, I'm using Prisma with Postgres, I store some data with JSON inside, when using { where }, and providing the path and equals value, it does not work.
3 replies
TTCTheo's Typesafe Cult
Created by Arxk on 2/21/2024 in #questions
Retrieving metadata from uploadFiles
Is there a way to retrieve the metadata you attach to the uploadFiles config? Seems to be no way of getting it with a result. https://docs.uploadthing.com/api-reference/ut-api
2 replies