Open
Description
Issue workflow progress
Progress of the issue based on the Contributor Workflow
- 1. The issue provides a reproduction available on Github, Stackblitz or CodeSandbox
Make sure to fork this template and run
yarn generate
in the terminal.Please make sure Mesh package versions under
package.json
matches yours.
- 2. A failing test has been provided
- 3. A local solution has been provided
- 4. A pull request is pending review
Describe the bug
Since the release of v0.78.12 the cli
package has an issue that causes a failure on generating the Typescript artifacts.
This happens when working with a single data source and a transform in wrap
mode.
This is the output:
💡 🕸️ Mesh Generating the unified schema
💡 🕸️ Mesh - Source1 Dereferencing the bundle
💡 🕸️ Mesh - Source1 Creating the GraphQL Schema from dereferenced schema
💡 🕸️ Mesh Generating artifacts
💡 🕸️ Mesh Generating index file in TypeScript
💥 🕸️ Mesh TypeError: Cannot read properties of undefined (reading 'get')
at generateTsArtifacts (/Users/user/projects/mesh-project/node_modules/@graphql-mesh/cli/bin.js:251:70)
at Object.handler (/Users/user/projects/mesh-project/node_modules/@graphql-mesh/cli/bin.js:1033:19)
To Reproduce
Steps to reproduce the behavior:
- Have a Mesh service that works on a single data source (hence no stitching required)
- Define a transform at the source level that supports both
bare
andwrap
mode (e.g. naming convention, filterSchema, etc.) - Omit the
mode
property in the transform config (or set it towrap
) - Run the server
Expected behavior
The artifacts are generated correctly and the server runs as normal.
Metadata
Metadata
Assignees
Labels
No labels