Write .graphql files, use auto generated Angular services.
It's all possible thanks to:
- apollo-angular
- graphql-code-generator
- graphql-codegen-typescript-apollo-angular
yarn
# or
npm installyarn graphql
# or
npm run graphqlAll documents from src/app/graphql were generated into services that you can find in src/app/generated/graphql.ts