anton-b
03/14/2018, 10:55 PMYour token is invalid. It might have expired or you might be using a token from a different project
- error.
I have run the prisma token
command, but what exactly do I need to do with it?
I have my graphql server running in it's own project and the database service in another.anton-b
03/14/2018, 11:12 PMdebug: true/false
inside new Prisma({...})
that's apparently why it happened 🙂nilan
03/15/2018, 10:38 AManton-b
03/15/2018, 11:17 AMnilan
03/15/2018, 11:17 AMprisma.yml
?nilan
03/15/2018, 11:17 AManton-b
03/15/2018, 11:19 AManton-b
03/15/2018, 11:21 AMnilan
03/15/2018, 11:23 AMnilan
03/15/2018, 11:24 AManton-b
03/15/2018, 11:31 AManton-b
03/15/2018, 11:32 AMprisma.graphql
into my server repo, and that is fine my needs at this point.nilan
03/15/2018, 11:32 AMprisma.graphql
in your server?anton-b
03/15/2018, 11:36 AMnilan
03/15/2018, 11:38 AMprisma.graphql
in the servers individually, as part of a build step or scriptanton-b
03/15/2018, 11:48 AManton-b
03/15/2018, 11:48 AManton-b
03/15/2018, 11:48 AMGit repo: prisma-service
+— datamodel.graphql
+— prisma.yml
+— schemas
| +— prisma.graphql // generated on deploy
+— .env
+— .env.production
+— .env.test
Git repo: app-graphql-server
+— src
| +— index.js
| +— schema.graphql
| +— imported
| +— prisma.graphql // copy pasted from prisma-service repo
.
.
.
`
nilan
03/15/2018, 11:49 AMgraphql get-schema
is your friend 🙂anton-b
03/15/2018, 11:53 AMprojects:
app:
schemaPath: "src/schema.graphql"
extensions:
endpoints:
default: "<http://localhost:4000>"
nilan
03/15/2018, 11:53 AManton-b
03/15/2018, 11:55 AMprojects:
app:
schemaPath: "src/schema.graphql"
extensions:
endpoints:
default: "<http://localhost:4000>"
database:
schemaPath: "src/generated/prisma.graphql" <-- this path
extensions:
prisma: database/prisma.yml