Aaron Dye Jr
09/01/2020, 11:37 AMAlex Reyne
09/01/2020, 8:57 PMAlex Reyne
09/01/2020, 8:58 PMawait prisma.rosters.delete({
where: {
id: raid.id,
raider_id: user.id
}
})
Sascha
09/03/2020, 2:18 PMSascha
09/03/2020, 2:20 PM@@id([a, b])
, how can I do upserts on those models?Sascha
09/03/2020, 2:56 PMPatrick
09/03/2020, 3:43 PMPhilipp Rajah Moura Srivastava
09/04/2020, 1:59 AMManthan Mallikarjun
09/04/2020, 8:13 AMChristian Valencia
09/04/2020, 1:20 PMzth
09/05/2020, 8:00 PMLeo
09/06/2020, 4:09 PMOmar Harras
09/06/2020, 8:15 PMgraphql-yoga
with prisma 2, and I have some issues when creating items with Enums
I got this error when I execute my mutation :
Argument type: Provided value
{
set: [
'CLOTHES'
]
}
of type Json on prisma.createOneItem is not a enum.
→ Possible values: Type.CLOTHES, Type.SHOES, Type.ACCESSORIES, Type.DECORATION
anyone have an idea on how enums works with mutations ? thanks youAlex Reyne
09/06/2020, 9:09 PMIntrospecting based on datasource defined in prisma/schema.prisma …
Oops, an unexpected error occured!
[/rustc/04488afe34512aa4c33566eb16d8c912a3ae04f9/src/libcore/str/mod.rs:1942:47] byte index 1 is out of bounds of ``
Sascha
09/07/2020, 7:31 AMBilly Ohgren
09/07/2020, 11:41 AMBilly Ohgren
09/07/2020, 11:42 AMMGH Developpers
09/07/2020, 11:59 AMMichael Aubry
09/08/2020, 2:44 AMLars-Jørgen Kristiansen
09/08/2020, 9:23 AMUNIQUE
constraints"
It seems like some of the contraints it wants me to add are "switched"
This is the problamatic datamodel
type Absent {
treatment: AbsentTreatment!
@relation(link: INLINE, name: "TreatmentOnAbsent", onDelete: CASCADE)
}
type AbsentTreatment {
absent: Absent! @relation(name: "TreatmentOnAbsent", onDelete: SET_NULL)
}
It wants me to run:
ALTER TABLE "default$default"."AbsentTreatment" ADD UNIQUE ("absent");
But there is no absent field on AbsentTreatment with this model.. Should I instead run the following?
ALTER TABLE "default$default"."Absent" ADD UNIQUE ("treatment");
Or should i update the prisma1 datamodel?KJReactor
09/08/2020, 1:25 PMzth
09/08/2020, 2:45 PMprisma migrate
, what are people using to deal with indexes and other "non-Prisma" stuff for migrations? A separate migration setup?Jonathan Romano
09/09/2020, 4:55 PMcreate
multiple times in a Promise.all?
Warren Day
09/10/2020, 10:11 AMJonathan Romano
09/11/2020, 12:43 AMDarda
09/12/2020, 2:29 PMDarda
09/12/2020, 2:30 PMDarda
09/12/2020, 2:31 PMDarda
09/12/2020, 2:32 PM