highoutput-graphql-server
Advanced tools
Comparing version 0.0.3 to 0.0.4
@@ -9,3 +9,4 @@ import HTTPServer, { HTTPServerOptions } from 'highoutput-http-server'; | ||
constructor(options: HTTPServerOptions & GraphQLServerOptions); | ||
start(): Promise<void>; | ||
} | ||
//# sourceMappingURL=index.d.ts.map |
@@ -12,3 +12,6 @@ "use strict"; | ||
this.options = options; | ||
const server = new apollo_server_koa_1.ApolloServer(options); | ||
} | ||
async start() { | ||
super.start(); | ||
const server = new apollo_server_koa_1.ApolloServer(this.options); | ||
server.applyMiddleware({ app: this.app }); | ||
@@ -15,0 +18,0 @@ } |
{ | ||
"name": "highoutput-graphql-server", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"description": "A simple GraphQL server class based on appolo-server-koa", | ||
@@ -37,3 +37,3 @@ "keywords": [ | ||
}, | ||
"gitHead": "ba7182d9d7c205869e5c8aa8a77eeb1a19333b4a" | ||
"gitHead": "47e6d15d331024f20055e049b5ee73810b9ca7e8" | ||
} |
@@ -12,7 +12,10 @@ import HTTPServer, { HTTPServerOptions } from 'highoutput-http-server'; | ||
super(options); | ||
} | ||
const server = new ApolloServer(options); | ||
async start() { | ||
super.start(); | ||
const server = new ApolloServer(this.options); | ||
server.applyMiddleware({ app: this.app }); | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
4901
99