Version: 2.0
Angular CLI
To get started with Apollo and Angular run:
#
ProxyIf your GraphQL endpoint lives under different host with Angular CLI you can easily define proxy configuration.
Take for example api.example.com/graphql
:
Create a json file (proxy.config.json
for example) with that configuration.
To run server use --proxy-config
option:
An example: