Hive-Router's Plan Executor (hive-router-plan-executor)
This crate is a standalone library for performing GraphQL execution for a Federation query plan.
Installation
Add this to your Cargo.toml:
[]
= "<...>"
Usage
Start by either producing a plan (using Hive Router query-planner), or by loading it from a file or any other source.
For usage example, please follow the router binary hotpath. The step involved parsing, processing, planning and preparing the incoming operation.
Once all information is collected, you can use it as follows:
use execute_query_plan;
use QueryPlanExecutionContext;
// Result is a Vec<u8> you can send as final response or make into a Bytes buffer.
let result = execute_query_plan
.await;