4

I'm trying to download my graphcms schema into my flutter project. I'm using Ferry as the graphql client.

According to the ferry docs I just need to run npm install -g get-graphql-schema and then run get-graphql-schema [ENDPOINT_URL] > lib/schema.graphql to download the schema.

However, when I try running that command, I get this in the terminal: zsh: command not found: get-graphql-schema .

I'm using an m1 mac - not sure if this is an m1-specific issue.

Any ideas on how to solve this would be much appreciated.

Jason Lloyd
  • 378
  • 7
  • 23

1 Answers1

0

You must remove the apollo-cli by command:

brew uninstall apollo-cli

And try run get-graphql-schema [ENDPOINT_URL] > lib/schema.graphql again. In my case, it's successfully.

quynhbkhn
  • 59
  • 4