1.2.5 • Published 12 months ago

wobe-graphql-yoga v1.2.5

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

What is Wobe apollo ?

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

Install

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

Basic example

import { Wobe } from 'wobe'
import { WobeGraphqlYogaPlugin } from 'wobe-graphql-yoga'

const wobe = new Wobe().usePlugin(
	WobeGraphqlYogaPlugin({
		typeDefs: `
					type Query {
						hello: String
					}
				`,
		resolvers: {
			Query: {
				hello: () => 'Hello from Yoga!',
			},
		},
		maskedErrors: false, // You can mask the errors to have generic errors in production
	}),
)

wobe.listen(3000)
1.2.5

12 months ago

1.2.4

1 year ago

1.2.3

1 year ago

1.2.2

1 year ago

1.2.1

1 year ago

1.2.0

1 year ago

1.1.0

1 year ago

1.0.0

1 year ago