All Projects β†’ kamilkisiela β†’ Apollo Angular

kamilkisiela / Apollo Angular

Licence: mit
A fully-featured, production ready caching GraphQL client for Angular and every GraphQL server 🎁

Programming Languages

typescript
32286 projects

Projects that are alternatives of or similar to Apollo Angular

Apollo Client
πŸš€ Β A fully-featured, production ready caching GraphQL client for every UI framework and GraphQL server.
Stars: ✭ 17,070 (+1513.42%)
Mutual labels:  graphql, apollo-client, apollographql, graphql-client
Apollo Link Maxage
An Apollo Link to invalidate cached queries
Stars: ✭ 23 (-97.83%)
Mutual labels:  graphql, apollo-client, apollographql
Kikstart Graphql Client
πŸš€ Small NodeJS Wrapper around apollo-client that provides easy access to running queries, mutations and subscriptions.
Stars: ✭ 27 (-97.45%)
Mutual labels:  graphql, apollo-client, graphql-client
Link state demo
πŸš€ Demonstrate how to support multiple stores in Apollo Link State
Stars: ✭ 30 (-97.16%)
Mutual labels:  graphql, apollo-client, apollographql
Githunt React
[DEPRECATED] πŸ”ƒ An example app frontend built with Apollo Client and React
Stars: ✭ 1,036 (-2.08%)
Mutual labels:  graphql, apollo-client, apollographql
React Graphql Github Apollo
πŸš€ A React + Apollo + GraphQL GitHub Client. Your opportunity to learn about these technologies in a real world application.
Stars: ✭ 1,563 (+47.73%)
Mutual labels:  graphql, apollo-client, apollographql
Graphql Query Test Mock
Easily mock GraphQL queries in your Relay Modern / Apollo / any-other-GraphQL-client tests.
Stars: ✭ 49 (-95.37%)
Mutual labels:  graphql, apollographql, graphql-client
Angular1 Apollo
AngularJS integration for the Apollo Client
Stars: ✭ 108 (-89.79%)
Mutual labels:  graphql, apollo-client, graphql-client
Graphql Codegen Hasura
code-generator plugins for hasura/apollo-gql/typescript development
Stars: ✭ 113 (-89.32%)
Mutual labels:  graphql, apollo-client, apollographql
Apollo Link
πŸ”— Interface for fetching and modifying control flow of GraphQL requests
Stars: ✭ 1,434 (+35.54%)
Mutual labels:  graphql, apollo-client, graphql-client
Apollo Android
πŸ€– Β A strongly-typed, caching GraphQL client for the JVM, Android, and Kotlin multiplatform.
Stars: ✭ 2,949 (+178.73%)
Mutual labels:  graphql, apollographql, graphql-client
Apollo Ios
πŸ“± Β A strongly-typed, caching GraphQL client for iOS, written in Swift.
Stars: ✭ 3,192 (+201.7%)
Mutual labels:  graphql, apollographql, graphql-client
Graphql React Apollo
A GraphQL implementation in React using Apollo.
Stars: ✭ 9 (-99.15%)
Mutual labels:  graphql, apollographql
Create Social Network
An educational project, demonstrating how to build a large scalable project with Javascript.
Stars: ✭ 853 (-19.38%)
Mutual labels:  graphql, apollo-client
Aws Mobile Appsync Sdk Js
JavaScript library files for Offline, Sync, Sigv4. includes support for React Native
Stars: ✭ 806 (-23.82%)
Mutual labels:  graphql, graphql-client
Graphql
GraphQL (TypeScript) module for Nest framework (node.js) 🍷
Stars: ✭ 697 (-34.12%)
Mutual labels:  graphql, apollographql
Fullstack Graphql
🌈 Simple Fullstack GraphQL Application. API built with Express + GraphQL + Sequelize (supports MySQL, Postgres, Sqlite and MSSQL). WebApp built with React + Redux to access the API. Written in ES6 using Babel + Webpack.
Stars: ✭ 955 (-9.74%)
Mutual labels:  graphql, graphql-client
Graphql Client
A Ruby library for declaring, composing and executing GraphQL queries
Stars: ✭ 961 (-9.17%)
Mutual labels:  graphql, graphql-client
Umi Plugin Apollo
Apollo graphql plugin for umi
Stars: ✭ 48 (-95.46%)
Mutual labels:  graphql, apollographql
Crypto Grommet
Crypto and equities app
Stars: ✭ 39 (-96.31%)
Mutual labels:  graphql, apollo-client

Angular

Apollo Angular npm version

Apollo Angular allows you to fetch data from your GraphQL server and use it in building complex and reactive UIs using the Angular framework. Apollo Angular may be used in any context that Angular may be used. In the browser, in NativeScript, or in Node.js when you want to do server-side rendering.

Apollo Angular requires no complex build setup to get up and running. As long as you have a GraphQL server you can get started building out your application with Angular immediately. Apollo Angular works out of the box with both Angular CLI (ng add apollo-angular) and NativeScript with a single install.

Apollo Angular is:

  1. Incrementally adoptable, so that you can drop it into an existing JavaScript app and start using GraphQL for just part of your UI.
  2. Universally compatible, so that Apollo works with any build setup, any GraphQL server, and any GraphQL schema.
  3. Simple to get started with, so you can start loading data right away and learn about advanced features later.
  4. Inspectable and understandable, so that you can have great developer tools to understand exactly what is happening in your app.
  5. Built for interactive apps, so your users can make changes and see them reflected in the UI immediately.
  6. Small and flexible, so you don't get stuff you don't need. The core is under 12kb compressed.
  7. Community driven, because Apollo is driven by the community and serves a variety of use cases. Everything is planned and developed in the open.

Get started today on the app you’ve been dreaming of, and let Apollo Angular take you to the moon!

Installation

It is simple to install Apollo Angular and related libraries

# installing Apollo Angular in Angular CLI
ng add apollo-angular

# installing each piece independently
yarn add @apollo/client apollo-angular graphql

That’s it! You may now use Apollo Angular in any of your Angular environments.

For an amazing developer experience you may also install the Apollo Client Developer tools for Chrome which will give you inspectability into your Apollo Angular data.

If you are using Apollo-Client v2, please make sure to use [email protected] (and for Angular 10 support, make sure to use v1.10.0)

Usage

Now you may create components that are connected to your GraphQL API.

Finally, to demonstrate the power of Apollo Angular in building interactive UIs let us connect one of your components to your GraphQL server using the Apollo service:

import {Component, OnInit} from '@angular/core';
import {Apollo, gql} from 'apollo-angular';

const GET_DOGS = gql`
  {
    dogs {
      id
      breed
    }
  }
`;

@Component({
  selector: 'dogs',
  template: `
    <ul>
      <li *ngFor="let dog of dogs | async">
        {{dog.breed}}
      </li>
    </ul>
  `,
})
export class DogsComponent implements OnInit {
  dogs: Observable<any>;

  constructor(private apollo: Apollo) {}

  ngOnInit() {
    this.dogs = this.apollo
      .watchQuery({
        query: GET_DOGS,
      })
      .valueChanges.pipe(map(result => result.data && result.data.dogs));
  }
}

To learn more about querying with Apollo Angular be sure to start reading the documentation article on queries.

Documentation

All of the documentation for Apollo Angular including usage articles and helpful recipes lives on: https://www.apollo-angular.com/

Contributing

Read the Apollo Contributor Guidelines.

This project uses Lerna.

Bootstraping:

yarn install

Running tests locally:

yarn test

Formatting code with prettier:

yarn prettier

This project uses TypeScript for static typing. You can get it built into your editor with no configuration by opening this project in Visual Studio Code, an open source IDE which is available for free on all platforms.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].