Ramin B
11/14/2018, 4:18 PMgraphql-resolver-codegen
is now called graphqlgen
(https://github.com/prisma/graphqlgen). im following an example project (https://github.com/prisma/graphql-prisma-typescript) which still references graphql-resolver-codegen
and has some interface codegen scripts (https://github.com/prisma/graphql-prisma-typescript/blob/master/package.json#L12).. what would the equivalent of that be in the graphqlgen
world?qirex
11/14/2018, 6:48 PMqirex
11/14/2018, 6:50 PMRamin B
11/14/2018, 6:59 PMschema.graphql
and in some there isn’t. ie,Ramin B
11/14/2018, 6:59 PM# import {} from "./generated/prisma-client/prisma.graphql"
Ramin B
11/14/2018, 6:59 PMTomasz Kawik
11/15/2018, 7:34 AMqirex
11/15/2018, 8:55 AMYou typically don't redefine your model definitions in the application schema. Instead, you import them using graphql-import:
qirex
11/15/2018, 8:57 AMqirex
11/15/2018, 8:59 AMTomasz Kawik
11/15/2018, 9:24 AMprisma-schema.ts
, where types reside, which cannot be imported directly into application schema.graphql
. Or am I missing something?
Should I use two generators then?qirex
11/15/2018, 5:50 PMgenerate:
- generator: graphql-schema
output: ../src/generated/schema/
- generator: typescript-client
output: ../src/generated/prisma-client/
Tomasz Kawik
11/16/2018, 7:30 AM