graphql-engine/v3/crates/lang-graphql
Rakesh Emmadi 7944fdbe4e Refactor errors, and split execute and explain code path (#525)
The massive `Error` enum from `execute.rs` disintegrates into the
following independent error types.
- `RequestError`: All exceptions occurred before executing the root
field plans. Each variant in this error enum contains the error type
stemming from isolated steps in the pipeline involving parsing,
validation, IR conversion, and plan generation.
- `FieldError`: Exception occurred when resolving a field through its
plan. Multiple root fields are executed isolated, and field errors are
collected in a list.

Code paths for `explain` and `execute` query are split into two
functions. This is done to avoid few error variants and unburden the
function that previously does both.

V3_GIT_ORIGIN_REV_ID: 21f2f43ee4805a955fa0ce7d9b45c4b1902def63
2024-05-02 07:29:06 +00:00
..
benches Format everything with Prettier. (#530) 2024-04-30 14:58:57 +00:00
src Refactor errors, and split execute and explain code path (#525) 2024-05-02 07:29:06 +00:00
tests Format everything with Prettier. (#530) 2024-04-30 14:58:57 +00:00
Cargo.toml create auth and utils subdirectories in crates, and move architecture information to a separate doc. (#534) 2024-05-01 09:05:15 +00:00