Wobe apollo is a plugin for the wobe web framework that allows you to easily use the apollo server.
bun install wobe-graphql-apollo # On bun
npm install wobe-graphql-apollo # On npm
yarn add wobe-graphql-apollo # On yarn
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)