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

Got unexpected PRIMITIVES type #6003

Closed
4 tasks
vasily-polonsky opened this issue Sep 25, 2023 · 3 comments
Closed
4 tasks

Got unexpected PRIMITIVES type #6003

vasily-polonsky opened this issue Sep 25, 2023 · 3 comments

Comments

@vasily-polonsky
Copy link

vasily-polonsky commented Sep 25, 2023

Issue workflow progress

Progress of the issue based on the
Contributor Workflow

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

Hi there,

I upgraded versions of
@graphql-mesh/cli 0.85.1-> 0.87.8
@graphql-mesh/graphql 0.94.4-> 0.95.2

I am using mesh for federated subgraphs with custom scalars, each subgraph works as before, but in mesh I started to receive errors "Got unexpected PRIMITIVES type: CUSTOM_SCALAR".

Looks like it is related to zalando-incubator/graphql-jit#216
The thing is that I don't want to replicate scalar implementation in mesh, and want just to forward a request to subgraph and return the result. Or this is the expected outcome and my way of thinking is wrong?

Expected behavior

Environment:

  • OS: macOS ventura
  • @graphql-mesh/0.87.8:
  • NodeJS: 18.16.1

Additional context

@tlosbar
Copy link

tlosbar commented Sep 26, 2023

Got the same error with these versions in dependencies :
@graphql-mesh/cli: "0.87.8"
@graphql-mesh/openapi: "0.95.5"

So I returned back to :
@graphql-mesh/cli: "0.85.1",
@graphql-mesh/openapi: "0.94.4"

And everything work again ...

@davorjokic-e2x
Copy link

Workaround that worked form me is @envelop/graphql-jit plugin.

@ardatan
Copy link
Owner

ardatan commented Sep 28, 2023

Fixed in the latest release!

@ardatan ardatan closed this as completed Sep 28, 2023
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

4 participants