/// Creates a new GraphQl starting from the specified root plan.
Creates a new GraphQl starting from the specified root plan.
Creates a new GraphQl starting from the specified root plan .
pub fn with_plan(root_plan: Plan<A>, query: String) -> Self {
        let ast = parse_query(&query).expect("graphQL ast parsing failed");
        let paths = ast.into_paths(Hector {
            variables: root_plan.variables(),
            bindings: root_plan.into_bindings(),
        });
        GraphQl { query, paths }
    }
pub fn with_plan ( root_plan : Plan < A > , query : String ) -> Self { let ast = parse_query ( & query ) . expect ( " " ) ; let paths = ast . into_paths ( Hector { variables : root_plan . variables ( ) , bindings : root_plan . into_bindings ( ) , } ) ; GraphQl { query , paths } }
Creates a new GraphQl starting from the specified root plan.
Creates a new GraphQl starting from the specified root plan .
root_plan
Plan<A>
query
String