Skip to content

A library/executable to run both legacy (JS) and native (Rust) query planners and to compare their results

License

Notifications You must be signed in to change notification settings

apollographql/qp-compare

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

QP Compare

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".

Build

cargo build

Running as a command-line tool

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.

Imported as a library

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" }

About

A library/executable to run both legacy (JS) and native (Rust) query planners and to compare their results

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages