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.
Apollo Angular is the ultra-flexible, community driven GraphQL client for Angular, JavaScript, and native platforms. It is designed from the ground up to make it easy to build UI components that fetch data with GraphQL.
Yes. We can use GraphQL with React without using Apollo Client. We can use fetch or axios and can make things work the same. Below example demonstrates the usage of fetch to query a GraphQL endpoint.
Apollo Client is a comprehensive state management library for JavaScript that enables you to manage both local and remote data with GraphQL. Use it to fetch, cache, and modify application data, all while automatically updating your UI.
You can use angular1-apollo
package.
http://github.com/apollostack/angular1-apollo
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With