mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
Create express-graphql-tests.ts
This commit is contained in:
@@ -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 }));
|
||||
Reference in New Issue
Block a user