lawjolla
07/09/2018, 3:45 PMprisma deploy
?Kalmuraee
07/09/2018, 5:39 PMrwatts3
07/09/2018, 10:28 PMrwatts3
07/09/2018, 10:28 PMaroman
07/09/2018, 10:55 PMdocker-compose.yml
files (both slightly different). One in my root directory and one in my database directory. Are the 2 absolutely necessary? Which one takes precedence? My assumption was that they have different connections, one to the front-end and one to the database, and hence both are neededsunrising
07/09/2018, 11:47 PM.env
and a .env-dev
but then how can i switch between the two? what do i have to write in the yml?johhansantana
07/10/2018, 1:58 AMmichael.graham
07/10/2018, 2:03 AMplayra
07/10/2018, 9:22 AMNick
07/10/2018, 9:49 AMGrant
07/10/2018, 1:03 PMconst item = await ctx.db.query.item({
where: { product: { id: productId } }
});
I get the error Reason: 'product' Field 'product' is not defined in the input type 'ItemWhereUniqueInput'.
Is there some way to have relations included in ItemWhereUniqueInput
?
This currently looks like:
type ItemWhereUniqueInput {
id: ID
}
jay.araujo
07/10/2018, 2:09 PMjay.araujo
07/10/2018, 2:09 PMjay.araujo
07/10/2018, 2:09 PMJim
07/10/2018, 2:31 PMconst server = new GraphQLServer({
typeDefs: './src/schema.graphql',
resolvers,
context: req => ({
...req,
db: new Prisma({
typeDefs: 'src/generated/prisma.graphql', // the auto-generated GraphQL schema of the Prisma API
endpoint: process.env.PRISMA_ENDPOINT, // the endpoint of the Prisma API (value set in `.env`)
debug: true, // log all GraphQL queries & mutations sent to the Prisma API
// secret: process.env.PRISMA_SECRET, // only needed if specified in `database/prisma.yml` (value set in `.env`)
}),
}),
});
prolink007
07/10/2018, 2:56 PMprolink007
07/10/2018, 2:56 PMGarrett Thompson
07/10/2018, 4:45 PMJasCodes
07/10/2018, 5:10 PMJasCodes
07/10/2018, 5:10 PMJasCodes
07/10/2018, 5:11 PMplayra
07/10/2018, 8:49 PMJames Bradly
07/10/2018, 11:45 PMTeri
07/11/2018, 2:42 AMchameleon
07/11/2018, 2:45 AMpascallaliberte
07/11/2018, 2:45 AMchameleon
07/11/2018, 2:46 AMchameleon
07/11/2018, 2:46 AMchameleon
07/11/2018, 2:46 AM