bazaglia
04/25/2018, 2:40 PMgraphql get-schema --project db
does. I use prisma (not graphql-framework neither graphql-yoga), I'm not sure I have access to this get-schema method. How could I generate the prisma.graphql?
I need it as I import types from generated .graphql file to build my own graphql schema in top of prisma generated types.nilan
04/25/2018, 2:45 PMgraphql get-schema --project db
uses the graphql
CLI: npm install graphql-cli
nilan
04/25/2018, 2:49 PMgraphql
as a dev dependency, then you can run (for example) yarn graphql get-schema --project db
bazaglia
04/25/2018, 2:51 PMbazaglia
04/25/2018, 3:26 PMnilan
04/25/2018, 3:32 PMnilan
04/25/2018, 3:32 PMnilan
04/25/2018, 3:32 PMTOKEN=Bearer ${prisma token}
graphql get-schema --header "{"Authorization": "TOKEN"}
sorry, the syntax might be wrong 🙂bazaglia
04/25/2018, 3:33 PMnilan
04/25/2018, 3:34 PMgraphql get-schema -h
🙂 I think the token syntax is not correct though 🤔bazaglia
04/25/2018, 3:35 PMbazaglia
04/25/2018, 3:35 PMbazaglia
04/25/2018, 3:35 PMbazaglia
04/25/2018, 3:35 PMbazaglia
04/25/2018, 3:35 PMnilan
04/25/2018, 3:36 PMbazaglia
04/25/2018, 3:37 PMbazaglia
04/25/2018, 3:41 PMnilan
04/25/2018, 3:42 PM