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

1.2.5 • Public • Published

Logo

Wobe

Documentation   •   Discord

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)

/wobe-graphql-yoga/

    Package Sidebar

    Install

    npm i wobe-graphql-yoga

    Homepage

    wobe.dev

    Weekly Downloads

    29

    Version

    1.2.5

    License

    MIT

    Unpacked Size

    3.22 kB

    Total Files

    4

    Last publish

    Collaborators

    • palixir