-
Notifications
You must be signed in to change notification settings - Fork 97
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
request: static configuration to reference subgraphs by name rather than index #683
Comments
WunderGraph commits fully to Open Source and we want to make sure that we can help you as fast as possible. |
Please can you attach your .yml that you're passing to |
it numbers all the listed services, I would like to see the name in the error, not the number. version: 1
subgraphs:
- name: test
routing_url: http://localhost:8080/query
introspection:
url: http://localhost:8080/query |
For example see screens from #684 I would like to see the name of the graph "test" in the error, not "0". |
For the error you've posted here, you have >=8 subgraphs, correct? And the issue is that subgraph provides the index, rather than the name? |
When using a static config, indices are used. See also: #364 We'd welcome a PR that addresses this, but changing it is not a priority. |
Yes, more than 25 subgraphs so far.
Yeah in trace would be cool to see the name too! Thx |
Component(s)
router
Is your feature request related to a problem? Please describe.
I use wgc to build the schematic locally and I get
Failed to fetch from subgraph '7' at path 'query'.
, it is not clear what this subgraph is.Describe the solution you'd like
I would like to be able to see the name of the subgraph in the bug despite the fact that it reveals information about the services under the router.
Describe alternatives you've considered
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: