UNPKG

@graphql-hive/laboratory

Version:

[Hive](https://the-guild.dev/graphql/hive) is a fully open-source schema registry, analytics, metrics and gateway for [GraphQL federation](https://the-guild.dev/graphql/hive/federation) and other GraphQL APIs.

23 lines (22 loc) 737 B
import { GraphQLNamedType, GraphQLSchema } from 'graphql'; export interface DocsSearchResult { types: GraphQLNamedType[]; fields: { typeName: string; fieldName: string; }[]; enumValues: { typeName: string; valueName: string; }[]; hasMore: boolean; } /** * Walks the type map rather than reusing the Builder's `searchSchemaPaths`, which * only follows field paths out from the root operation types and stops at depth 8. * Docs has to reach input objects, argument types and enum values, none of which * that traversal can see. */ export declare const searchSchemaDocs: (schema: GraphQLSchema | null, search: string, options?: { maxResults?: number; }) => DocsSearchResult;