Xiaoyun Yang
09/15/2018, 3:10 AMschema.graphql
like we previously did from src/generated/prisma.graphql
? Do we need to copy and paste the type to schema.graphql
now? Previously I think we can do # import User from './generated/prisma.graphql'
if we want to use the User
type in schema.graphql
, but now in prisma-client, the schema is defined in a .js
file and I am not sure how to import that.Gomah
09/17/2018, 6:28 AMGomah
09/17/2018, 6:34 AMgenerate:
- generator: typescript-client
output: ../src/generated/
- generator: graphql-schema
output: ../src/generated/
Note: I had graphql get-schema --project database
under my post-deploys hooks that was failing silently.