You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1. The issue provides a reproduction available on CodeSandbox.
2. A failing test has been provided
3. A local solution has been provided
4. A pull request is pending review
Describe the bug
The expected runtime schema works in mesh dev but not mesh build && mesh start. It seems like the type name is inferred from the field name rather than from the name in the schema.
The generated SDL and TypeScript files are correct and looks like what I would expect. Running mesh dev also yields the correct runtime schema.
The issue only occurs whenever mesh uses the generated jsonSchemaBundle. I don't know if the problem originates here though.
To Reproduce
Steps to reproduce the behavior: repro.
Run "yarn start" and in Playground look at the introspected schema:
Now run yarn prod and again look at the introspected schema:
Issue workflow progress
Progress of the issue based on the Contributor Workflow
Describe the bug
The expected runtime schema works in
mesh dev
but notmesh build && mesh start
. It seems like the type name is inferred from the field name rather than from the name in the schema.The generated SDL and TypeScript files are correct and looks like what I would expect. Running
mesh dev
also yields the correct runtime schema.The issue only occurs whenever
mesh
uses the generatedjsonSchemaBundle
. I don't know if the problem originates here though.To Reproduce
Steps to reproduce the behavior: repro.
Run "yarn start" and in Playground look at the introspected schema:
![Screenshot 2022-11-09 at 14 02 49](https://user-images.githubusercontent.com/873043/200840593-a68d928d-c63e-4283-842b-0198f0ec1f14.png)
Now run
![Screenshot 2022-11-09 at 14 02 34](https://user-images.githubusercontent.com/873043/200840705-93d86d62-530e-43b8-9498-ec9c60aa1a7c.png)
yarn prod
and again look at the introspected schema:Expected behavior
I expect it to behave like it does in
mesh dev
.Environment:
v16.15.1
Additional context
The
Thing
type is duplicated and exists twice in the schema.It does remind me of this issue I filed in
openapi-to-graphql
.The text was updated successfully, but these errors were encountered: