1.0.5 • Published 4 months ago

wobe-graphql-apollo v1.0.5

Weekly downloads
-
License
MIT
Repository
github
Last release
4 months ago

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)
1.0.2

6 months ago

1.0.5

4 months ago

1.0.4

5 months ago

1.0.3

6 months ago

1.0.1

7 months ago

1.0.0

7 months ago