Skip to main content

infrahub_sdk.analyzer

Classes​

GraphQLQueryVariable ​

GraphQLOperation ​

GraphQLQueryAnalyzer ​

Methods:

is_valid ​

is_valid(self) -> tuple[bool, list[GraphQLError] | None]

nbr_queries ​

nbr_queries(self) -> int

operations ​

operations(self) -> list[GraphQLOperation]

contains_mutation ​

contains_mutation(self) -> bool

variables ​

variables(self) -> list[GraphQLQueryVariable]

calculate_depth ​

calculate_depth(self) -> int

Number of nested levels in the query

calculate_height ​

calculate_height(self) -> int

Total number of fields requested in the query

get_fields ​

get_fields(self) -> dict[str, Any]