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

resolversComposition bug

Open gilgardosh opened this issue 2 years ago • 0 comments

Describe the bug resolver path now must not begin with ./

To Reproduce Steps to reproduce the behavior:

create a basic project, with config as so:

...
    transforms:
      - resolversComposition:
          mode: bare
          compositions:
            - resolver: Query.*
              composer: ./src/resolvers/queryResolver

runtime error will be thrown:

Failed to generate schema: Cannot find module './src/resolvers/queryResolver'.

Expected behavior for this to be valid (note that src/resolvers/queryResolver, without ./ prefix, does work)

gilgardosh avatar Nov 23 '21 11:11 gilgardosh