Closed bastianhilton closed 2 years ago
I found how to resolve this issue, in my package.json i just added the commands and it got passed the error:
under the scripts section, i added:
"gql-generate": "gqlg --schemaFilePath ./server/generated-schema.graphql --destDirPath ./graphql/generated",
Can someone show me how to run the generator from another directory using the force option like the error says.
I have a package.json and created a .js file is attempting to run it like so:
"gql-generate": "node gql-generator.js" in my package.json
this is my file:
`const gqlg = require('gql-generator')
gqlg({ schemaFilePath: '../server/generated-schema.graphql', destDirPath: '/generated/'})`