$ npm install -g @hypi/cli
hypi login
Login with user name and password
hypi login -d
Login with organization name space and Authorization token from here https://hypi.app/developer-hub
hypi init
Initialize your app and instance or refernece an existing domain .hypi folder will be created with app.yaml, instance.yaml and schema.graphql files
hypi sync angular
will sync your local schema and get the full schema, then genearte graphql Angular schema file
- Inside yoir Angular project, run
hypi login
Afetr login, user config folder will be placed in~/.config/hypi/config.json
- Run
hypi init
to initialize your app or refernece an existing domain .hypi folder will be created withapp.yaml
,instance.yaml
andschema.graphql
- Write your schema inside
schema.graphql
- Write your queries and mutations inside
/src/graphql
and then runhypi sync angular
to generate the Angular schema The full generated schema will be inside .hypi folder/.hypi/generated-schema.graphql
- The genearted graphql Angular schema will be inside
/src/generated/graphql.ts