Build schema.json with data as top-level property instead of __schema for Relay compatibility

This commit is contained in:
Brian Beck 2017-10-19 20:16:04 -07:00
parent be67d771ab
commit 46d16ebd13
2 changed files with 10754 additions and 10752 deletions

21504
schema.json

File diff suppressed because it is too large Load diff

View file

@ -3,7 +3,7 @@ import schema from '../src/schema'
if (process.argv[2] === '--json') {
graphql(schema, introspectionQuery).then(result => {
console.log(JSON.stringify(result.data, null, 2))
console.log(JSON.stringify(result, null, 2))
}).catch(err => {
console.error(err)
})