pub fn new(query: String) -> Self {
        let ast = parse_query(&query).expect("graphQL ast parsing failed");

        let empty_plan = Hector {
            variables: vec![0],
            bindings: vec![],
        };

        GraphQl {
            query,
            paths: ast.into_paths(empty_plan),
        }
    }
/// Creates a new GraphQl instance by parsing the AST obtained
/// from the provided query.
Creates a new GraphQl instance by parsing the AST obtained
from the provided query.
Creates a new GraphQl instance by parsing the AST obtained from the provided query .
pub fn new(query: String) -> Self {
        let ast = parse_query(&query).expect("graphQL ast parsing failed");
        let empty_plan = Hector {
            variables: vec![0],
            bindings: vec![],
        };
        GraphQl {
            query,
            paths: ast.into_paths(empty_plan),
        }
    }
pub fn new ( query : String ) -> Self { let ast = parse_query ( & query ) . expect ( " " ) ; let empty_plan = Hector { variables : vec ! [ 0 ] , bindings : vec ! [ ] , } ; GraphQl { query , paths : ast . into_paths ( empty_plan ) , } }
Creates a new GraphQl instance by parsing the AST obtained
from the provided query.
Creates a new GraphQl instance by parsing the AST obtained from the provided query .
query
String
query
String