Dadi Atar
07/03/2019, 12:37 PMkoia
07/03/2019, 4:22 PMNeeraj Sewani
07/03/2019, 5:18 PMNeeraj Sewani
07/03/2019, 5:21 PMNeeraj Sewani
07/03/2019, 5:22 PMNeeraj Sewani
07/03/2019, 5:38 PMposts
in User type but it was showing an error saying that both the types should contain relations with the same name. Is it compulsory to have opposite lists with relation annotation in either model?Vitaliy K.
07/03/2019, 5:50 PMVitaliy K.
07/03/2019, 5:50 PMHerbert Pimentel
07/04/2019, 2:00 AMAwey
07/04/2019, 5:02 AMAwey
07/04/2019, 5:04 AMtype User @db(name: "user") {
id: ID! @id
name: String! @db(name: "full_name")
}
Awey
07/04/2019, 5:05 AMAwey
07/04/2019, 5:06 AMUnexpected token. Expected one of: Start of block ("{").
being directed towards the "@"Slackbot
07/04/2019, 7:34 AMJeany Meza
07/04/2019, 8:22 AMMorten Bo Rønsholdt
07/04/2019, 9:32 AMtype Offer {
id: ID! @id
createdAt: DateTime! @createdAt
updatedAt: DateTime! @updatedAt
trackId: ID! @id
}
ie. when creating an Offer
auto-generate both id
and trackId
. currently I get an error when trying to do something like that: (node:29091) UnhandledPromiseRejectionWarning: Error: Whoops. Looks like an internal server error. Search your server logs for request ID: local:cjxogyk7q004k0889ugcqgqjo
for example, something like this: trackId: String! @default(uuid()) @id @unique
Ehsan sarshar
07/04/2019, 9:58 AMOlaf
07/04/2019, 10:16 AMconnect
via a unique key like ânameâ rather than the the id
generated for a record. In my case, a mutation adds a user to a category (two âtablesâ if you will), I want to connect the user to this category using the name of the category (a String! @unique
) but find myself having to reference the category by its id
column instead. Is there a way it can accept either of the two (using enums wonât help me much as each category has more fields)? If not, how do people solve it? Will I have to use expensive where
queries to find the id
for a specific category name? Thanks.Kianoosh
07/04/2019, 11:03 AMpg
? I need to do some raw queries...Hebilicious
07/04/2019, 12:34 PMPedro Jardim
07/04/2019, 7:27 PMgem
07/05/2019, 1:16 PMconst updateMany = prisma.updateManyOrders({ where: { ... }, data: { priority: $theirPriority - 1 });
is it possible to do this kind of algo with prisma ? without having to update each recordScottAgirs
07/05/2019, 8:03 PMprisma2 init app
and entering all the DB credentials it generates project.prisma
file and stops the process, without giving the option to choose Prisma tools (Photon/Lift) - any ideas anyone?ScottAgirs
07/05/2019, 9:02 PM(Error), code: .., message: \"relation \\\"prisma-hello.User\\\" does not exist\", detail: None
Just followed the Prisma2 Github tutorial, getting the above error on npm start
Please check this thread for details.Simon StenbĂŚk Madsen
07/06/2019, 5:11 PMSimon StenbĂŚk Madsen
07/06/2019, 5:14 PMEhsan sarshar
07/07/2019, 8:33 AMkoia
07/07/2019, 2:55 PMvacom
07/07/2019, 5:27 PMMichael Auderer
07/07/2019, 6:05 PMobjectType
from @nexus/prisma
?
Or should we use prismaObjectType
from nexus-prisma
as before?