graphql-cli-generate-fragments
graphql-cli-generate-fragments copied to clipboard
Unknown argument: generate-fragments
Things were going well until the last line:
npm i -g graphql-cli graphql-cli-generate-fragments
graphql init
graphql get-schema
graphql generate-fragments
Get the usage help with the last line saying: Uknown argument: generate-fragments
Versions:
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
Windows 10
@zbyte64 can you share your .graphqlconfig.yml?
.graphqlconfig::
{
"projects": {
"topflavorfarms": {
"schemaPath": "schema.graphql",
"extensions": {
"endpoints": {
"default": "http://localhost:8000/graphql/"
}
},
"generate-fragments" {
"output": "planter/src/graphql/app.fragments.js"
"generator": "js"
}
}
}
Can you try graphqlconfig.yml rather than json?