fix local paths
This commit is contained in:
parent
37607d5435
commit
9e50373959
@ -3,12 +3,11 @@ const WebSocket = require('ws');
|
|||||||
const { PubSub } = require('graphql-subscriptions');
|
const { PubSub } = require('graphql-subscriptions');
|
||||||
const { parse } = require('graphql');
|
const { parse } = require('graphql');
|
||||||
const fs = require('fs');
|
const fs = require('fs');
|
||||||
import path from 'path';
|
|
||||||
|
|
||||||
const pubsub = new PubSub();
|
const pubsub = new PubSub();
|
||||||
|
|
||||||
const schemaPath = path.resolve(process.cwd(), './schemas/directus.graphql');
|
// Read the schema file
|
||||||
const schema = fs.readFileSync(schemaPath, 'utf8');
|
const schema = fs.readFileSync('./schemas/directus.graphql', 'utf8');
|
||||||
|
|
||||||
// Parse the schema
|
// Parse the schema
|
||||||
const document = parse(schema);
|
const document = parse(schema);
|
||||||
|
Reference in New Issue
Block a user