freder
07/04/2018, 12:58 PMprisma
project locally (using docker). now I want to implement custom resolvers, but I'm not sure how to register them. the documentation always seems to assume that I'm using graphql-yoga
directly... what am I missing here?Jenkins
07/04/2018, 1:01 PMgraphql-tools
and their method makeExecutableSchema
. That will allow you to generate a schema, with custom resolvers, that you can pass to express-graphql or apollo-server-express or whatever other server you use. The benefit of graphql-yoga is that it allows you to write your schema in a .graphql
file and import that directly 🙂 It's also a pretty nice server all around.freder
07/04/2018, 1:25 PMJenkins
07/04/2018, 1:28 PMprisma-binding
package, a way to connect to the underlying database. I'd recommend the tutorial over at "How to GraphQL" to start with. It goes through all the steps. After you're done there you should be able to use docker-compose to run your own, local, Prisma/SQL server.freder
07/04/2018, 1:34 PMfreder
07/04/2018, 1:36 PMgraphcool
you could just add custom functions to graphcool.yml
. I guess I'm confused about how that works with prisma
, when I'm actually not writing / running the server myself.freder
07/04/2018, 3:18 PM