This repository keeps an old part of apollo-router executing the legacy query planner and comparing its result against that of the new native query planner, which is called the "semantic diff".
cargo build
cargo run --schema <SCHEMA> --operation <OPERATION>
It runs both the legacy and native query planners and prints the generated (native) query plan. If there is a difference between the two planners, its detail will follow.
Run cargo run -- --help
for additional options.
This git repo can be imported as a library. Its crate name is qp_compare
.
Cargo.toml
qp-compare = { git = "https://github.com/apollographql/qp-compare", branch = "main" }