Urigo / merge-graphql-schemas

A utility library to facilitate merging of modularized GraphQL schemas and resolver objects.
https://www.npmjs.com/package/merge-graphql-schemas
929 stars 66 forks source link

Migration guide doesn't address all deprecated features #413

Open robross0606 opened 4 years ago

robross0606 commented 4 years ago

I'm super confused as how to migrate from this package to graphql-tools since things like fileLoader or even mergeResolvers aren't addressed in the migration guide. I think I see how to migrate mergeResolvers but what about fileLoader?

robross0606 commented 4 years ago

Never mind, I just noticed loadFiles in the example.

robross0606 commented 4 years ago

I'm still lost. The usage of loadFiles is clearly different but I cannot seem to find any clear documentation. My GraphQL files seem to be loading okay, but my resolvers are not loading as they did with this package.

ardatan commented 4 years ago

Could you try to replace fileLoader with loadFilesSync?

robross0606 commented 4 years ago

I already tried that. That wasn't the problem. I figured it out. Just as with mergeTypes, you were proxying loadFiles with some options.