@neo4j/graphql
Version:
A GraphQL to Cypher query execution layer for Neo4j and JavaScript GraphQL implementations
13 lines • 754 B
TypeScript
import { type DefinitionNode, type GraphQLSchema } from "graphql";
import type { ComplexityEstimator } from "graphql-query-complexity";
export declare class ComplexityEstimatorHelper {
private objectTypeNameToFieldNamesMapForComplexityExtensions;
private useComplexityEstimators;
constructor(useComplexityEstimators: boolean);
registerField(parentObjectTypeNameOrInterfaceTypeName: string, fieldName: string): void;
hydrateDefinitionNodeWithComplexityExtensions(definition: DefinitionNode): DefinitionNode;
hydrateSchemaFromSDLWithASTNodeExtensions(schema: GraphQLSchema): void;
getComplexityEstimators(): ComplexityEstimator[];
private getFieldsForParentTypeName;
}
//# sourceMappingURL=ComplexityEstimatorHelper.d.ts.map