Mehmet Onur Sagir
08/28/2019, 6:21 PMIsaac Weber
08/28/2019, 8:19 PMPRISMA_SECRET
and PRISMA_ENDPOINT
set. prisma deploy
and prisma token
work as expected. However after pasting in the token into graphql playground I am getting token is invalid when running queries.Levar Berry
08/29/2019, 1:17 AMRen
08/29/2019, 3:05 AMJames
08/29/2019, 7:13 AM@relation(link:INLINE)
because after switching to mongo prisma deploy insists its the only valid value.Martí Crespí
08/29/2019, 9:39 AMLeonardo Meneguzzi
08/29/2019, 4:03 PMIvor
08/29/2019, 4:03 PMLeonardo Meneguzzi
08/29/2019, 4:05 PMmanagementApiSecret: test-passwd
Leonardo Meneguzzi
08/29/2019, 4:05 PMLeonardo Meneguzzi
08/29/2019, 4:05 PMsecret: test-passwd
Leonardo Meneguzzi
08/29/2019, 4:05 PMIvor
08/29/2019, 4:06 PMPRISMA_MANAGEMENT_API_SECRET=your_secret docker-compose up -d
Leonardo Meneguzzi
08/29/2019, 4:06 PM.env
file but I will try for this wayIvor
08/29/2019, 4:08 PMPRISMA_MANAGEMENT_API_SECRET
in .env, put ${env:PRISMA_MANAGEMENT_API_SECRET}
in prisma.yml then in docker-compose.yml put managementApiSecret: ${PRISMA_MANAGEMENT_API_SECRET}
and finally spin up your docker container with the command I put above.Jeremiah
08/29/2019, 9:14 PMAndrej Lacko
08/30/2019, 8:14 AMBram Zijp
08/30/2019, 10:21 AMNikhil
08/30/2019, 12:20 PMrod750
08/30/2019, 8:48 PMCorey Snyder
08/31/2019, 12:08 AMlet updatedProduct = await context.prisma.updateFlightController({
where: {
id: productId,
},
data: {
images: {
create: {...imgObj, postedBy: { connect: { id: userId } } }
}
}
})
It successfully creates a new image and attaches it to the flight controller, but the updatedProduct
that is returned does not have the image on it. Is there an easy way to get that? In comparison if I save a new flight controller I get back the new flight controller object.KishanAlchemy
08/31/2019, 9:14 AMpod 'Apollo', '~> 0.15.0
pod.Dave Martinez
09/01/2019, 2:34 AMDesmond
09/01/2019, 7:55 AMDesmond
09/01/2019, 7:56 AMwuichen
09/02/2019, 6:03 AMCorey Snyder
09/02/2019, 2:12 PMNested Relation Mutations
? My question is: When saving an image like below to a product, Is there a way to easily get the ID of the newly created image object? In this example I get the updated product ID but not the image that was created.
let updatedProduct = await context.prisma.updateFlightController({
where: {
id: productId,
},
data: {
images: {
create: {...imgObj, postedBy: { connect: { id: userId } } }
}
}
})
Heng Gek
09/02/2019, 2:55 PMSasa Mocic
09/02/2019, 4:02 PMHaack
09/02/2019, 4:47 PM