High level package built on top of graphql-yoga, to create graphql server with websocket support easily.
- All graphql-yoga features
- Authentication support
- Apollo Engine support
- Pre-defined scalar types: Date, Time, DateTime, JSON
- Pre-defined Graph for getting server stats
- Remote Schema stitching
- Local Schema stitching
- Rest apis integration
- Dotenv support (for development environment)
- Web sockets improved support
import { run } from 'jokio'
import { graphql, LocalSchema } from 'jokio-graphql';
const schema: LocalSchema = {
typeDefs: `
extend type Query {
hello: String
}
`,
resolvers: {
Query: {
hello: () => 'world'
}
}
}
run(
graphql({ localSchemas: [schema] })
)