I am a newbie to the graphql world and I'm trying to setup multiple modular schemas and resolvers using Apollo Server v2.
I noticed a weird behavior where I have issues with the order of my resolvers.
In the line Object.assign({}, propertiesResolver, agreementsResolver)
all resolvers defined by propertiesResolver don't get invoked since it is the first in the order of resolvers. If I swapped the two sets of resolvers like Object.assign({}, agreementsResolver, propertiesResolver)
now resolvers defined by agreementsResolver don't get invoked.
Am I missing some important detail about graphql execution here?
Note: All my schema definitions and corresponding resolvers are correctly defined, I feel something is wrong with the order in which I'm importing things.