File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ module.exports = async (options) => {
2
2
const path = require ( 'path' )
3
3
const fs = require ( 'fs-extra' )
4
4
const { logWithSpinner, stopSpinner, done } = require ( '@vue/cli-shared-utils' )
5
- const { graphql, introspectionQuery , printSchema } = require ( 'graphql' )
5
+ const { graphql, getIntrospectionQuery , printSchema } = require ( 'graphql' )
6
6
const { makeExecutableSchema } = require ( 'graphql-tools' )
7
7
const { load } = require ( './load' )
8
8
@@ -22,7 +22,7 @@ module.exports = async (options) => {
22
22
// JSON schema
23
23
logWithSpinner ( '📄' , 'Generating JSON file...' )
24
24
await fs . ensureDir ( path . dirname ( options . jsonOutput ) )
25
- const result = await graphql ( schema , introspectionQuery )
25
+ const result = await graphql ( schema , getIntrospectionQuery ( ) )
26
26
if ( result . errors ) {
27
27
throw new Error ( `Generating JSON failed: ${ result . errors . map ( e => e . message ) . join ( ' | ' ) } ` )
28
28
}
You can’t perform that action at this time.
0 commit comments