Skip to content
This repository has been archived by the owner on Dec 10, 2023. It is now read-only.

Commit

Permalink
Merge pull request #192 from rkaneko/issue-191-fix-validation-func
Browse files Browse the repository at this point in the history
fix: Fix interpretation of the introspection result
  • Loading branch information
rkaneko authored Jul 18, 2019
2 parents d045d5d + b9540eb commit 809e44b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api/compute.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export default async function compute(
`A valid GraphQL introspection query result should be contained in : ${option.schema} .`
);
}
const schema = buildClientSchema(schemaJson.data);
const schema = buildClientSchema(schemaJson.data || schemaJson);
for (const documentNode of computed.values()) {
validateDocumentNode(schema, documentNode);
}
Expand Down

0 comments on commit 809e44b

Please sign in to comment.