I am following https://www.graph.cool/docs/1.0/quickstart/backend/typescript/typescript-rohd6ipoo4 for graphcool and I an getting the error
{
"errors": [
{
"code": 3016,
"requestId": "api:api:cjc7gf91e002v0180uq2hqace",
"message": "Project not found: 'my-app@dev'"
}]}
for query and mutation. I am new to graphcool so don't have any idea why this is happening. I am following the step provided in the above link.
GraphqlServer:
const server = new GraphQLServer({
typeDefs: './src/schema.graphql',
resolvers,
context: req => ({
...req,
db: new Graphcool({
endpoint: 'http://localhost:60000/my-app/dev',
secret: 'mysecret123',
}),
}),
})
$ graphcool info
Service Name: my-app
dev (cluster: `local`)
HTTP: http://localhost:60000/my-app/dev
Websocket: ws://localhost:60000/my-app/dev