kyleshevlin
11/22/2018, 4:33 AMjavascript-client, does it make sense to import the typeDefs from prisma-client.js into whatever I'm using to make my graphql server? The Prisma tutorials have you create your own schema.graphql file to supply the typeDefs, but that seems redundant to rewrite your schema after writing it in the datamodel.prisma file.nikolasburk
kyleshevlin
11/22/2018, 6:13 PMkyleshevlin
11/22/2018, 6:14 PMschema.graphql file, and I was like, "Maybe the way I solve this without writing my own schema is to import the typeDefs" 🤔kyleshevlin
11/22/2018, 6:18 PMkyleshevlin
11/22/2018, 6:32 PMnikolasburk
nikolasburk
kyleshevlin
11/22/2018, 7:55 PMkyleshevlin
11/23/2018, 12:22 AMnikolasburk
graphql-import indeed is a tool that lets you import types from your prisma.graphql (which defines the full CRUD API) into your schema.graphql (we call this application schema).nikolasburk
graphql-import. As a a matter of fact, especially when starting a project this is often what you want. Typically the application schema becomes more specific over time and that's when you start decoupling it from the Prisma schema 🙂kyleshevlin
11/23/2018, 5:40 PMBiel Simon
12/11/2018, 9:07 PM