Alex Reyne
08/25/2020, 8:56 PMKJReactor
08/25/2020, 10:35 PMdata
contains the input for the new product
I checked the table it indeed refers to the designated home. However, I can't get the products
column in Home to refer to the set of keys it has products
is an array of the same type of key.id. I tried changing the above to this but it doesn't work:
``
return await ctx.prisma.store.update({
where: { store_id },
data: {
products: {
create: { ...data }
}
}
});
``justinhandley
08/26/2020, 1:26 PMJayanth
08/26/2020, 1:58 PMKJReactor
08/26/2020, 2:01 PMGabriel Oliveira
08/26/2020, 11:37 PM"prisma-binding": "^2.1.1" on the project package.json
) and I only have experience with prisma 2 using prisma cloud, which does not include that step.
I need to figure out what is the service that was created by the previous dev and hosted on heroku, this service is the endpoint for the Prisma instance of prisma-binding class as below:
const prisma = new Prisma({
typeDefs: 'src/generated/prisma.graphql',
endpoint: endpoint,
secret: secret,
fragmentReplacements
})
Since I do not have access to whatever was created and deployed to the endpoint consumed above, I wonder if this is possibly something that will need to be altered as I create other queries mutations and everything else, or if it's just some sort of middleware between prisma and the postgres DB
The url is formatted as:
<https://projetc-802bb3764d.herokuapp.com/project/dev>
Thanks!Michael Aubry
08/27/2020, 7:10 AMJayanth
08/27/2020, 9:53 AMJayanth
08/27/2020, 10:28 AMvnadygin
08/27/2020, 11:16 AMGabriel Oliveira
08/27/2020, 11:57 PMprisma deploy -e
kpav
08/28/2020, 12:09 AMTobias Meixner
08/28/2020, 6:56 AMJayanth
08/28/2020, 7:41 AMUserActivity{
type:String!
target: Int!
unit: String!
}
type has enums like {Drinking Water, Yoga} etc. If type is Drinking Water can I set unit to litres predefined. For yoga it has to be minutes. How can I do this ?Kaspar Naaber
08/28/2020, 11:24 AMGabriel Oliveira
08/28/2020, 3:10 PM- graphql get-schema -p prisma
is not generating the src/generated/prisma.graphql
file?Gabriel Oliveira
08/28/2020, 3:10 PMGabriel Oliveira
08/28/2020, 5:52 PMGabriel Oliveira
08/29/2020, 5:50 PMGabriel Oliveira
08/29/2020, 7:24 PMPieter
08/31/2020, 6:56 AMJayanth
08/31/2020, 8:43 AMNatalia
Manthan Mallikarjun
09/01/2020, 5:00 AMyendi
09/01/2020, 6:28 AMyendi
09/01/2020, 6:30 AMyendi
09/01/2020, 6:44 AMAaron Dye Jr
09/01/2020, 11:22 AMAaron Dye Jr
09/01/2020, 11:22 AMAaron Dye Jr
09/01/2020, 11:25 AM