modelfak modelfak - 29 days ago 16
AngularJS Question

How I can use graphql with angular 1.5?

I have standart factories in my angular app for rest api. I need to configure my angular app for api with GraphQl. How i can do this? I now about
angular2-apollo but I have angular 1.5.

Answer

Yes you can use Apollo-Client and just wrap the functions with $q.

Here is an example (Look at the Angular1App folder): https://github.com/robzhu/graphql-demo

Comments