@honohub/graphql
TypeScript icon, indicating that this package has built-in type declarations

0.2.4 • Public • Published

@honohub/graphql

The useGraphQL plugin adds the GraphQL endpoint to the Hono App. You can also enable the GraphQL playground using the playground prop. {{ className: 'lead' }}

Here's an example of how to use the useGraphQL plugin -

export default defineHub({
  db,
  serverUrl: "http://localhost:3000/",
  collections: [collection],
  plugins: [
    useGraphQL({
      route: "/graphql",
      playground: true,
    }),
  ],
});

Package Sidebar

Install

npm i @honohub/graphql

Weekly Downloads

1

Version

0.2.4

License

MIT

Unpacked Size

23.3 kB

Total Files

12

Last publish

Collaborators

  • mathuraditya724