@hubql/fastify
v0.0.2
Published
An API client with Hubql for your fastify server
Downloads
8
Readme
Hubql Client for Fastify
Example usage of Hubql Client in a Fastify project.
Installation
npm install @hubql/fastify
Usage
Pass OpenAPI JSON URL to your hubqlClient
import { hubqlClient } from '@hubql/fastify'
fastify.get('/docs/json', {}, async (request, reply) => {
reply.send(fastify.swagger())
})
fastify.register(hubqlClient, {
hubqlPath: '/',
openAPIDoc: {
url: '/docs/json',
},
})