[][src]Crate graphql_depth_limit

Utilites for graphql query depth analysis

graphql_depth_limit provide utilities for easy identification of possible malicious queries (high depth).

Quick Start

example

use graphql_depth_limit::QueryDepthAnalyzer;
 
let query = r#"
    query {
        hello {
            world
        }
    }
"#;
let analyzer = QueryDepthAnalyzer::new(query, vec![], |_a, _b| true).unwrap();
let verify_result = analyzer.verify(5);
 

Structs

ExceedMaxDepth
QueryDepthAnalyzer