Create express-graphql-tests.ts

This commit is contained in:
Isman Usoh
2016-03-01 12:42:11 +07:00
parent 424716686c
commit ecdcb2b402
+10
View File
@@ -0,0 +1,10 @@
/// <reference path="./express-graphql.d.ts" />
/// <reference path="../express/express.d.ts" />
var express = require("express");
var graphqlHTTP = require("express-graphql");
var app = express();
var schema = {};
app.use("/graphql", graphqlHTTP({ schema: schema, graphiql: true }));