bkstorm
02/20/2019, 9:33 AMgenerated
folder. There is no errors when running graphql server, does anyone have this problem and how to fix it. Thanks!
const Query = prismaObjectType({
name: 'Query',
definition: t => t.prismaFields(['*']),
})
const Mutation = prismaObjectType({
name: 'Mutation',
definition: t => t.prismaFields(['*']),
})
const schema = makePrismaSchema({
types: [Query, Mutation],
prisma: {
datamodelInfo: metaSchema,
client: prisma,
},
outputs: {
schema: path.join(__dirname, './generated/schema.graphql'),
typegen: path.join(__dirname, './generated/nexus.ts'),
},
})
Martí Crespí
02/20/2019, 9:37 AMbkstorm
02/20/2019, 9:39 AMMartí Crespí
02/20/2019, 9:46 AMbkstorm
02/20/2019, 9:47 AMbkstorm
02/20/2019, 9:47 AMMartí Crespí
02/20/2019, 9:49 AMMartí Crespí
02/20/2019, 9:49 AMbkstorm
02/20/2019, 9:53 AMdatamodelInfo
causes the issue.antonbramsen
02/20/2019, 9:54 AMprisma deploy
yet?Martí Crespí
02/20/2019, 9:55 AMprisma deploy
and in the post-deploy hooks you have npx nexus-prisma-generate --client ./generated/prisma-client --output ./generated/nexus-prisma
bkstorm
02/20/2019, 9:55 AMhooks:
post-deploy:
- prisma generate
- npx nexus-prisma-generate --client ./src/generated/prisma-client --output ./src/generated/nexus-prisma
bkstorm
02/20/2019, 9:56 AMMartí Crespí
02/20/2019, 9:57 AMbkstorm
02/20/2019, 9:58 AMantonbramsen
02/20/2019, 9:58 AMnexus
installed as well?bkstorm
02/20/2019, 9:59 AM"nexus": "^0.9.14",
Martí Crespí
02/20/2019, 10:02 AMbkstorm
02/20/2019, 10:26 AMbkstorm
02/20/2019, 10:40 AMstart
script: "start": "ts-node-dev -r dotenv/config --no-notify --respawn --transpileOnly ./src"
, when I delete -r dotenv/config
, nexus.ts and schema.graphql will be generated fast parrotMartí Crespí
02/20/2019, 10:41 AMbkstorm
02/20/2019, 10:41 AMts-node
commandbkstorm
02/20/2019, 11:04 AM