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**.
14 lines (13 loc) • 480 B
TypeScript
/// <reference types="node" />
import type { FastifyPluginCallback } from 'fastify';
import { RenderVoyagerOptions } from './render';
export interface GraphQLVoyagerFastifyPluginOptions extends RenderVoyagerOptions {
/**
* Path in which GraphQL Voyager will be accesible.
*
* By default is `/voyager`
*/
path?: string;
}
declare const _default: FastifyPluginCallback<GraphQLVoyagerFastifyPluginOptions, import("http").Server>;
export default _default;