Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fails on Abacus OData schema #6984

Open
2 of 4 tasks
shishkin opened this issue May 16, 2024 · 0 comments
Open
2 of 4 tasks

Fails on Abacus OData schema #6984

shishkin opened this issue May 16, 2024 · 0 comments

Comments

@shishkin
Copy link

Issue workflow progress

Progress of the issue based on the
Contributor Workflow

  • 1. The issue provides a reproduction available on
    Github

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

I'm trying to generate a schema for Abacus OData endpoint. Abacus is a proprietary ERP system, though it provides a publicly available schema (archived just in case), which I also copied into the failing test. The vendor is using Microsoft tooling for development, so supposedly the source is valid. Also odata2ts can successfully work with the source schema.

Mesh fails with error:

🕸️  Mesh - Abacus 💥 Failed to generate the schema for the source "Abacus"
 Cannot find type with name undefined
🕸️  Mesh 💥 Error: Schemas couldn't be generated successfully. Check for the logs by running Mesh.
    at getMesh (/.../node_modules/@graphql-mesh/runtime/cjs/get-mesh.js:124:15)
    at async Object.handler (/.../node_modules/@graphql-mesh/cli/cjs/index.js:336:53)

To Reproduce Steps to reproduce the behavior:

See failing test.

Expected behavior

Should successfully generate the schema or point to a detailed error at the source.

Environment:

  • OS: MacOS
  • @graphql-mesh/...: latest master
  • NodeJS: v20

Additional context

The OData schema is huge and mesh provides no detailed diagnostics to pinpoint the issue further.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant