UNPKG

synaptra

Version:

A high-performance Model Context Protocol server for GraphQL APIs with advanced features, type-safety, and developer experience improvements

27 lines 1.01 kB
import { GraphQLEndpoint, SchemaInfo, QueryInfo, QueryResult } from '../types'; export declare class GraphQLClientService { private maxRetries; private endpoint; private client; private schema; constructor(endpoint: GraphQLEndpoint, maxRetries?: number); introspectSchema(requestHeaders?: Record<string, string>): Promise<SchemaInfo>; executeQuery(queryInfo: QueryInfo, dryRun?: boolean): Promise<QueryResult>; analyzeQuery(query: string, variables?: Record<string, any>): Promise<{ operation: string; complexity: number; depth: number; fields: string[]; variables: string[]; fragments: string[]; }>; getSchema(): SchemaInfo | null; updateEndpoint(endpoint: Partial<GraphQLEndpoint>): void; private generateSchemaVersion; private getOperationType; private calculateComplexity; private calculateDepth; private extractFields; private extractFragments; } //# sourceMappingURL=graphql-client.d.ts.map