graphql-cli-generate-fragments icon indicating copy to clipboard operation
graphql-cli-generate-fragments copied to clipboard

Unknown argument: generate-fragments

Open zbyte64 opened this issue 7 years ago • 3 comments

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 avatar Sep 11 '18 20:09 zbyte64

@zbyte64 can you share your .graphqlconfig.yml?

develomark avatar Oct 19 '18 10:10 develomark

.graphqlconfig::

{
  "projects": {
    "topflavorfarms": {
      "schemaPath": "schema.graphql",
      "extensions": {
        "endpoints": {
          "default": "http://localhost:8000/graphql/"
        }
      },
      "generate-fragments" {
        "output": "planter/src/graphql/app.fragments.js"
        "generator": "js"
    }
  }
}

zbyte64 avatar Oct 19 '18 16:10 zbyte64

Can you try graphqlconfig.yml rather than json?

develomark avatar Oct 25 '18 18:10 develomark