Closed lexuanquynh closed 1 year ago
Try nvm install v15
before installing get-graphql-schema, it worked for me.
I am facing same issue, Tried with nvm install v15, It did not resolve @turboflo
@lexuanquynh, were you able to solve this issue?
Same issue on my m2
@madabhaviamit this is my solution:
npm install -g get-graphql-schema
If you are using Macbook silicon, make sure apollo-cli is not installed. If it exists, remove it with the command:
brew uninstall apollo-cli
The schema must be download with the command:
get-graphql-schema https:/<your_backend>/api/v1/graphql --json > schema.json
After executing this command, you will see the schema.json file. This file is used to generate graphQL queries in the iOS project.
@madabhaviamit @Hyferion Sorry I missed the notification from Github.
@lexuanquynh you can use npx as prefix and then try once. Like.. npx get-graphql-schema -H "x-hasura-admin-secret:[ADMIN-SECRET-KEY]" [END-POINT] --introspect > lib/schema.graphql
I'm try using:
and succefully. But I can't use this tool in my Mac M1.
Does this tool support for Mac M1? Thanks.