graphql-loader icon indicating copy to clipboard operation
graphql-loader copied to clipboard

Question: Can resolvers be modularised & merged in the load process

Open serle opened this issue 7 years ago • 3 comments

I was considering using the same approach until I came across the talk. Can the resolver file for each .graphql file sit alongside its corresponding schema and be merged into an executable schema by your loaded? I would also like some form of co-location of the two halves of the picture

serle avatar May 03 '17 12:05 serle

Upvote on this request. Seems like this tool is nothing more than a toy if you cannot load co-located resolvers for queries, mutations and custom types.

Panoplos avatar Jun 27 '17 16:06 Panoplos

I did something very similar to this, checkout https://github.com/RedLeap/GraphQL

jakelacey2012 avatar Jul 03 '17 16:07 jakelacey2012

Thing is, graphql-tools seems to be moving in this direction... The only real difference is you have to manually load your gql files into memory, then feed them to makeExecutableSchema.

Panoplos avatar Jul 04 '17 05:07 Panoplos