Tommy Adeniyi
02/21/2022, 7:02 PMaccess_token
and token_type
Tommy Adeniyi
02/21/2022, 7:55 PMJim Jeffers
02/22/2022, 5:22 AMVicky
02/22/2022, 7:09 AMVicky
02/22/2022, 7:17 AMKasir Barati
02/22/2022, 4:34 PMrelation field
?
model Country {
id Int @id @default(autoincrement())
// Country Code Alphabet 3
cca3 String @unique() @db.VarChar(3)
states State[]
capital City? @relation(name: "country_capital")
@@map("countries")
}
model State {
id Int @id @default(autoincrement())
// State Code Alphabet 3
sca3 String @db.VarChar(3)
countryId Int
belongsToCountry Country @relation(fields: [countryId], references: [id], map: "belongs_to_country")
@@index([sca3])
@@map("states")
}
Any thought on this?Cirsten Kot
02/22/2022, 5:41 PMAlex Vilchis
02/22/2022, 8:29 PMowner
column š¤Ruslan Gonzalez
02/22/2022, 9:17 PMaetheryx
02/23/2022, 5:03 AMtype
support for MongoDB in SQL databases (mapping to Json
, but giving us typescript typings and safety)?Boo
02/23/2022, 5:37 AMDateTime
is ordered correctly when creating new rows?Luis Kuper
02/23/2022, 9:42 AMupdatedAt DateTime @updatedAt
instead of the in the docs mentioned version
column?
The code would then look like this:
const availableSeat = await client.seat.findFirst({
where: {
Movie: {
name: movieName,
},
claimedBy: null,
},
})
if (!availableSeat) {
throw new Error(`Oh no! ${movieName} is all booked.`)
}
const seats = await client.seat.updateMany({
data: {
claimedBy: userEmail,
},
where: {
id: availableSeat.id,
updatedAt: availableSeat.updatedAt,
},
})
PanMan
02/23/2022, 10:56 AMmysql -u etc
) from my laptop, so there is no firewall or other issue.. There are no strange chars in the URL that would need encoding. Any pointers? Even at highest debug level, Prisma doesnāt show the password it sends (which I understand from security standpoint, but still, the only thing I can think of is it sending a different password than I tell it toā¦)?Elijah Rosier
02/23/2022, 11:32 AMCarlos Weckesser
02/23/2022, 11:47 AMasync
function passed to the prisma.$transaction()
function. Iām using Jest to mock the Prisma client, but in this case I would have to provide a mock for the prisma.$transaction()
function and in doing so, I would be replacing the very logic Iām trying to unit test.
I hope I explained the case well enough.
Iād really appreciate some guidance from any that has run into this scenario.
Thanks in advance!
P/S: Is the Prisma Team planning to implement manual transaction control (start, commit, rollback)?Marvin
02/23/2022, 12:23 PMMatheus Assis
02/23/2022, 12:41 PMdev
backend/database but reset all the data?
⢠Do you use an existing dev
backend/database but donāt reset all the data and have the tests work around other data on the dev environment?shahrukh ahmed
02/23/2022, 2:12 PMnpx prisma migrate deploy
?karolis
02/23/2022, 2:50 PMLuis Haroldo Castro Cabrera
02/23/2022, 4:27 PMRanjan Purbey
02/24/2022, 12:25 AMPeter Kellner
02/24/2022, 5:12 AMHussein
02/24/2022, 6:08 AMJonas Schultheiss
02/24/2022, 7:48 AMgustav
02/24/2022, 11:04 AMgustav
02/24/2022, 11:05 AMgustav
02/24/2022, 11:05 AMgustav
02/24/2022, 11:08 AMArjen
02/24/2022, 11:10 AMKanav Raina
02/24/2022, 11:34 AMconst users = await prisma.users.groupBy({
by: ['email'],
_sum: {
likes:true
}
})