UNPKG

graphql-voyager-fastify-plugin

Version:

This is a [**Fastify Plugin**](https://www.fastify.io/docs/master/Plugins/) for hosting an instance of **GraphQL Voyager**, with support for **TypeScript**, and tested for **Fastify v3**.

16 lines (15 loc) 498 B
export interface VoyagerDisplayOptions { rootType?: string; skipRelay?: boolean; skipDeprecated?: boolean; showLeafFields?: boolean; sortByAlphabet?: boolean; hideRoot?: boolean; } export interface RenderVoyagerOptions { endpoint?: string; headers?: string | Record<string, unknown>; displayOptions?: VoyagerDisplayOptions; credentials?: 'same-origin' | 'include' | 'omit'; } export declare function renderVoyagerPage(options: RenderVoyagerOptions): string;