Skip to content

Latest commit

 

History

History
33 lines (26 loc) · 1.29 KB

File metadata and controls

33 lines (26 loc) · 1.29 KB

Graphity - Server Express

Downloads Version License Typescript
dependencies Status

Installation

npm install @graphity/server-express --save
import { Graphity } from 'graphity'
import { ServerExpress } from '@graphity/server-express'

const graphity = new Graphity({
  resolvers: [
    HomeResolver,
    /* ... */
  ],
})

graphity.register(new AuthProvider())
graphity.register(new AwsProvider())
graphity.register(new TypeormProvider())

const server = new ServerExpress(graphity) // without boot
server.start(8080)