Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unknown argument: generate-fragments #10

Open
zbyte64 opened this issue Sep 11, 2018 · 3 comments
Open

Unknown argument: generate-fragments #10

zbyte64 opened this issue Sep 11, 2018 · 3 comments

Comments

@zbyte64
Copy link

zbyte64 commented Sep 11, 2018

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:

@develomark
Copy link
Owner

@zbyte64 can you share your .graphqlconfig.yml?

@zbyte64
Copy link
Author

zbyte64 commented Oct 19, 2018

.graphqlconfig::

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

@develomark
Copy link
Owner

Can you try graphqlconfig.yml rather than json?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants