Skip to content

Commit

Permalink
Remove unnecessary GraphQLSchema reference
Browse files Browse the repository at this point in the history
  • Loading branch information
Roy Mor authored and Roy Mor committed Mar 11, 2023
1 parent cfceea7 commit 535937a
Show file tree
Hide file tree
Showing 3 changed files with 4,210 additions and 5,676 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "graphql2rest",
"version": "1.0.0",
"version": "1.0.1",
"author": "Roy Mor <[email protected]>",
"contributors": [
"Ray Luxembourg",
Expand Down
3 changes: 1 addition & 2 deletions src/graphql2rest.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ const dot = require('dot-object');
const mingo = require('mingo');
const jmespath = require('jmespath');
const gql = require('graphql-tag');
const { GraphQLSchema } = require('graphql');

const { readDefaultsConfigFile, validateConfig, loadDependencies } = require('./setup');
const { stripResponseData, defaultFormatErrorFn } = require('./formatters');
Expand Down Expand Up @@ -97,7 +96,7 @@ const init = (
const { manifest, queryStrings, middlewaresModule } = loadDependencies(config);
if (!manifest || !queryStrings) return null;

if (!(schemaObj instanceof GraphQLSchema)) {
if (!schemaObj) {
error('init: schema object is required but missing. Aborting initialization.');
return null;
}
Expand Down
Loading

0 comments on commit 535937a

Please sign in to comment.