-
Notifications
You must be signed in to change notification settings - Fork 275
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
Propagate query planner errors as graphql::Error, not Result::Err #1142
Comments
I can have a first look tomorrow. Should errors from the query planner end up in the |
I started at It’s only after that that I noticed Are there any cases today where the query planner emits errors? (That may not yet be correctly propagated.) Where in the code does that happen? |
router/apollo-router/src/query_planner/caching_query_planner.rs Lines 120 to 152 in b6a2639
This is where a |
Based on discussion with @garypen only Rhai errors still need more handling:
[1] router/apollo-router/src/services/router_service.rs Lines 135 to 143 in b6a2639
|
We’ve discussed this and agreed that query planner errors should not go through
This will make handling of Rhai errors in the query-planner stage the same as in other stages. |
Unlike the rest of the data-structures QueryPlannerResponse doesn't have an errors field. This is problematic as the error handling mechanism in tower is only really suitable for unrecoverable pipeline errors.
The text was updated successfully, but these errors were encountered: