@redocly/graphql-docs
Version:
Redocly GraphQL docs
30 lines (29 loc) • 1.79 kB
TypeScript
import { Kind } from 'graphql';
import type { GraphQLField, GraphQLInterfaceType, GraphQLObjectType, GraphQLSchema, GraphQLNamedType } from 'graphql';
import type { TypeReference } from './models/index.js';
export declare class AppStore {
private schema;
private referenceMap;
constructor(schema: GraphQLSchema);
getTypes(kind: Kind, includedItems?: Set<string>): GraphQLNamedType[];
getQueryTypes(includedItems?: Set<string>): GraphQLField<any, any, any>[];
getMutationTypes(includedItems?: Set<string>): GraphQLField<any, any, any>[];
getSubscriptionTypes(includedItems?: Set<string>): GraphQLField<any, any, any>[];
getDirectiveTypes(includedItems?: Set<string>): import("graphql").GraphQLDirective[];
getQueryType(): import("graphql/jsutils/Maybe.js").Maybe<GraphQLObjectType<any, any>>;
getQueryField(name: string): GraphQLField<any, any, any> | null | undefined;
getMutationType(): import("graphql/jsutils/Maybe.js").Maybe<GraphQLObjectType<any, any>>;
getMutationField(name: string): GraphQLField<any, any, any> | null | undefined;
getSubscriptionType(): import("graphql/jsutils/Maybe.js").Maybe<GraphQLObjectType<any, any>>;
getSubscriptionField(name: string): GraphQLField<any, any, any> | null | undefined;
getDirective(name: string): import("graphql").GraphQLDirective | undefined;
getType<T extends GraphQLNamedType>(name: string): T | undefined;
getTypeReferences(name: string): TypeReference[] | undefined;
getImplementingTypes(name: string): ReadonlyArray<GraphQLObjectType | GraphQLInterfaceType> | undefined;
private filterByIncluded;
private getSchemaTypes;
private createReferenceMap;
private setFieldsTypeReferences;
private setUnionTypeReferences;
private setReference;
}