✨
Automatic Updates
Don't think about updating the UI or refetching the queries!
Get started with Apollo Runes in minutes:
pnpm add apollo-runes @apollo/client graphql rxjs
# or
npm i apollo-runes @apollo/client graphql rxjs
# or
yarn add apollo-runes @apollo/client graphql rxjs
Same as here for React
import { Query } from 'apollo-runes';
import { gql} from '@apollo/client';
const GET_USERS = gql`
query GetUsers {
users {
id
name
email
}
}
`;
const { data, loading, error } = new Query(GET_USERS);