Created
June 25, 2019 14:30
-
-
Save gufranmirza/db181af0fde34c2ebd2c1572a416d39d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const EasyGraphQLTester = require('easygraphql-tester') | |
const fs = require('fs') | |
const path = require('path') | |
const schemaCode = fs.readFileSync(path.join(__dirname, 'schema', 'schema.gql'), 'utf8') | |
const tester = new EasyGraphQLTester(schemaCode) | |
const query = ` | |
{ | |
getMe { | |
id | |
familyInfo { | |
father { | |
id | |
} | |
} | |
} | |
} | |
` | |
tester.test(true, query) // Error: Invalid field id on getMe |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment