pub fn plan<T: DeserializeOwned + 'static>(
    context: OperationalContext,
    options: QueryPlanOptions,
) -> Result<T, PlanningErrors> {
    Js::new()
        .with_parameter("schemaString", context.schema)
        .with_parameter("queryString", context.query)
        .with_parameter("options", options)
        .with_parameter("operationName", context.operation_name)
        .execute("do_plan", include_str!("../js-dist/do_plan.js"))
        .map_err(|errors| PlanningErrors { errors })
}
/// Create the query plan by calling in to JS.
///
/// We use a generic here because the output type `QueryPlan` is part of the router.
/// Since this bridge is temporary we don't to declare the `QueryPlan` structure in this crate.
/// We will instead let the caller define what structure the plan result should be deserialized into.
Create the query plan by calling in to JS.
We use a generic here because the output type `QueryPlan` is part of the router.
Since this bridge is temporary we don't to declare the `QueryPlan` structure in this crate.
We will instead let the caller define what structure the plan result should be deserialized into.
Create the query plan by calling in to JS . We use a generic here because the output type ` QueryPlan ` is part of the router . Since this bridge is temporary we don ' t to declare the ` QueryPlan ` structure in this crate . We will instead let the caller define what structure the plan result should be deserialized into .
pub fn plan<T: DeserializeOwned + 'static>(
    context: OperationalContext,
    options: QueryPlanOptions,
) -> Result<T, PlanningErrors> {
    Js::new()
        .with_parameter("schemaString", context.schema)
        .with_parameter("queryString", context.query)
        .with_parameter("options", options)
        .with_parameter("operationName", context.operation_name)
        .execute("do_plan", include_str!("../js-dist/do_plan.js"))
        .map_err(|errors| PlanningErrors { errors })
}
pub fn plan < T : DeserializeOwned + ' static > ( context : OperationalContext , options : QueryPlanOptions , ) -> Result < T , PlanningErrors > { Js :: new ( ) . with_parameter ( " " , context . schema ) . with_parameter ( " " , context . query ) . with_parameter ( " " , options ) . with_parameter ( " " , context . operation_name ) . execute ( " " , include_str ! ( " " ) ) . map_err ( | errors | PlanningErrors { errors } ) }
Create the query plan by calling in to JS.
Create the query plan by calling in to JS .
context
OperationalContext
options
QueryPlanOptions
context
OperationalContext
options
QueryPlanOptions