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

Extend example generates error in some cases #87

Open
petrmac opened this issue Mar 14, 2022 · 0 comments
Open

Extend example generates error in some cases #87

petrmac opened this issue Mar 14, 2022 · 0 comments

Comments

@petrmac
Copy link

petrmac commented Mar 14, 2022

I have unchanged version of both dgs subgraphs but I generated supergraph instead if introspecting with rover.
Apollo Gateway starts but it fails upon query with following:

GraphQLError: Validation error of type FieldUndefined: Field 'reviews' in type 'Show' is undefined @ '_entities/reviews'",
            "    at downstreamServiceError (/opt/apollo-gateway/node_modules/@apollo/gateway/dist/executeQueryPlan.js:378:12)",
            "    at /opt/apollo-gateway/node_modules/@apollo/gateway/dist/executeQueryPlan.js:261:59",
            "    at Array.map (<anonymous>)",
            "    at sendOperation (/opt/apollo-gateway/node_modules/@apollo/gateway/dist/executeQueryPlan.js:261:44)",
            "    at runMicrotasks (<anonymous>)",
            "    at processTicksAndRejections (node:internal/process/task_queues:96:5)",
            "    at async /opt/apollo-gateway/node_modules/@apollo/gateway/dist/executeQueryPlan.js:212:49",
            "    at async executeNode (/opt/apollo-gateway/node_modules/@apollo/gateway/dist/executeQueryPlan.js:132:17)",
            "    at async executeNode (/opt/apollo-gateway/node_modules/@apollo/gateway/dist/executeQueryPlan.js:120:27)",
            "    at async executeNode (/opt/apollo-gateway/node_modules/@apollo/gateway/dist/executeQueryPlan.js:103:40)"

As a result, the reviews does not get hit and does no populate the reviews subset of data.

It fails also sometimes when run in k8s even without pre-generated suprgraph (as is exaple).
Any idea what is causing that?

Thanks!

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