0.0.2 • Published 2 years ago

jenova-graphql v0.0.2

Weekly downloads
-
License
-
Repository
-
Last release
2 years ago

jenova

Battery-included GraphQL Server in TypeScript

Jenova is built on top of GraphQL Helix and Envelop. The goal is to provde an easy to easy, battery-included GraphQL server for TypeScript.

Install

npm i jenova-graphql

Usage

import { JenovaServer } from "jenova-graphql";
import { makeExecutableSchema } from "@graphql-tools/schema";

export const schema = makeExecutableSchema({
  typeDefs: /* GraphQL */ `
    type Query {
      hello: String!
    }
  `,
  resolvers: {
    Query: {
      hello: () => 'World',
    },
  },
});

new JenovaServer({ schema }).listen(5000);