wobe-graphql-apollo
TypeScript icon, indicating that this package has built-in type declarations

1.0.5 • Public • Published

Logo

Wobe

Documentation   •   Discord

What is Wobe apollo ?

Wobe apollo is a plugin for the wobe web framework that allows you to easily use the apollo server.

Install

bun install wobe-graphql-apollo # On bun
npm install wobe-graphql-apollo # On npm
yarn add wobe-graphql-apollo # On yarn

Basic example

import { Wobe } from 'wobe'
import { WobeGraphqlApolloPlugin } from 'wobe-graphql-apollo'

const wobe = new Wobe().usePlugin(
	await WobeGraphqlApolloPlugin({
		options: {
			typeDefs: `
          type Query {
            hello: String
          }
        `,
			resolvers: {
				Query: {
					hello: () => 'Hello from Apollo!',
				},
			},
		},
	}),
)

wobe.listen(3000)

Readme

Keywords

Package Sidebar

Install

npm i wobe-graphql-apollo

Homepage

wobe.dev

Weekly Downloads

0

Version

1.0.5

License

MIT

Unpacked Size

3.72 kB

Total Files

4

Last publish

Collaborators

  • palixir