Skip to content

Latest commit

 

History

History

graphql-apollo

Angular Spacex Graphql Codegen

This project was generated with Angular CLI version 8.3.25.

API

Get the API from the site https://api.spacex.land/graphql/.

Run ng serve for a dev server. Navigate to https://localhost:4200/. The app will automatically reload if you change any of the source files.

Steps

Add Apollo-Angular with ng add apollo-angular and set the API to the one above.

Generate the code generator for the project with npm i --save-dev @graphql-codegen/cli @graphql-codegen/typescript @graphql-codegen/typescript-apollo-angular @graphql-codegen/typescript-operations