Urigo / graphql-cli

📟 Command line tool for common GraphQL development workflows

Home Page:https://graphql-cli.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

get-schema not generating file

bayerlse opened this issue · comments

Describe the bug
When running "graphql get-schema --project xxx" with correct .graphqlconfig.yaml defined, is not creating my schema.grapqhl file despite process finished correctly.

Expected behavior
The file should be created.

.graphqlconfig.yaml

projects:
  xxx:
    schemaPath: src/shared/graphql/schema.graphql
    extensions:
      endpoints:
        yyy:
          url: 'http://localhost:3001/graphql'
          subscription: 'ws://localhost:3001/subscriptions'

Versions (please complete the following information):

  • OS: Windows 10
  • graphql-cli: 2.17.0

We've just released a new alpha version channel for GraphQL CLI - 4.0.0-alpha.XXX!

We've changed the get-schema command to use GraphQL Code Generator plugin of GraphQL CLI with the Codegen's schema-ast plugin.

Checkout new instructions in the migration guide and let us know your feedback during that alpha period!

Could you check if that solves your issues?

Feel free to contact us by opening a new issue or joining our Discord channel;
https://discord.gg/xud7bH

I've posted the wrong Discord link, this is the correct one: https://discord.gg/xud7bH9