wobe-graphql-yoga
v1.2.5
Published
GraphQL Yoga server for Wobe (official)
Downloads
138
Readme
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)