pt789
01/26/2018, 10:28 AMnilan
01/26/2018, 10:29 AMindex.js
, it's probably not the right one 🙂pt789
01/26/2018, 10:31 AMconst server = new GraphQLServer({
typeDefs: 'src/schema.graphql',
resolvers,
context: req => ({
...req,
db: new Prisma({
typeDefs: 'src/generated/prisma.graphql',
endpoint: process.env.PRISMA_ENDPOINT, // the endpoint of the Prisma DB service (value is set in .env)
secret: process.env.PRISMA_SECRET, // taken from database/prisma.yml (value is set in .env)
debug: false, // log all GraphQL queries & mutations
}),
}),
})
The endpoint is from process.env, and this is in .env
PRISMA_ENDPOINT="<http://localhost:4466/hello-prisma/dev>"
nilan
01/26/2018, 10:31 AMprisma info
?pt789
01/26/2018, 10:32 AMService Name: hello-prisma
dev (cluster: `local`)
HTTP: <http://localhost:4466/hello-prisma/dev>
Websocket: <ws://localhost:4466/hello-prisma/dev>
pt789
01/26/2018, 10:32 AMpt789
01/26/2018, 10:33 AM{
"code": 3016,
"requestId": "api:api:cjcvsfh4t005d0121901vu34p",
"error": "Project not found: 'hello-prisma@dev'"
}
nilan
01/26/2018, 10:41 AMcluster
property from your prisma.yml
file, and deploy to a developer cluster instead?nilan
01/26/2018, 10:42 AMpt789
01/26/2018, 11:04 AM