Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions examples/basic/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const fs = require('fs');
const path = require('path');
const { GraphQLSchema, GraphQLObjectType, GraphQLList, GraphQLString, printSchema } = require('graphql'); // eslint-disable-line import/no-extraneous-dependencies
const graphqlHTTP = require('express-graphql');
const { createHandler } = require('graphql-http/lib/use/express');
const express = require('express');
const SemanticGraph = require('../..');

Expand Down Expand Up @@ -55,7 +55,7 @@ console.log('Schema saved on disk');

// Start server
express()
.use('/graphql', graphqlHTTP({
.use('/graphql', createHandler({
schema,
pretty: true,
graphiql: true,
Expand Down
Loading