All Projects β†’ beeman β†’ Kikstart Graphql Client

beeman / Kikstart Graphql Client

Licence: mit
πŸš€ Small NodeJS Wrapper around apollo-client that provides easy access to running queries, mutations and subscriptions.

Programming Languages

typescript
32286 projects

Projects that are alternatives of or similar to Kikstart Graphql Client

36 Graphql Concepts
πŸ“œ 36 concepts every GraphQL developer should know.
Stars: ✭ 209 (+674.07%)
Mutual labels:  graphql, graphql-subscriptions, graphql-client
Apollo Link
πŸ”— Interface for fetching and modifying control flow of GraphQL requests
Stars: ✭ 1,434 (+5211.11%)
Mutual labels:  graphql, apollo-client, graphql-client
Apollo Angular
A fully-featured, production ready caching GraphQL client for Angular and every GraphQL server 🎁
Stars: ✭ 1,058 (+3818.52%)
Mutual labels:  graphql, apollo-client, graphql-client
Aws Lambda Graphql
Use AWS Lambda + AWS API Gateway v2 for GraphQL subscriptions over WebSocket and AWS API Gateway v1 for HTTP
Stars: ✭ 313 (+1059.26%)
Mutual labels:  graphql, subscriptions, graphql-subscriptions
Apollo Client
πŸš€ Β A fully-featured, production ready caching GraphQL client for every UI framework and GraphQL server.
Stars: ✭ 17,070 (+63122.22%)
Mutual labels:  graphql, apollo-client, graphql-client
Aws Mobile Appsync Sdk Ios
iOS SDK for AWS AppSync.
Stars: ✭ 231 (+755.56%)
Mutual labels:  graphql, graphql-subscriptions, graphql-client
Angular1 Apollo
AngularJS integration for the Apollo Client
Stars: ✭ 108 (+300%)
Mutual labels:  graphql, apollo-client, graphql-client
Morpheus Graphql
Haskell GraphQL Api, Client and Tools
Stars: ✭ 285 (+955.56%)
Mutual labels:  graphql, graphql-subscriptions, graphql-client
Altair
✨⚑️ A beautiful feature-rich GraphQL Client for all platforms.
Stars: ✭ 3,827 (+14074.07%)
Mutual labels:  graphql, graphql-subscriptions, graphql-client
Aws Mobile Appsync Sdk Js
JavaScript library files for Offline, Sync, Sigv4. includes support for React Native
Stars: ✭ 806 (+2885.19%)
Mutual labels:  graphql, graphql-subscriptions, graphql-client
Apollo Cache Hermes
A cache implementation for Apollo Client, tuned for performance
Stars: ✭ 425 (+1474.07%)
Mutual labels:  graphql, apollo-client
Apollo Link Firebase
πŸ”₯ πŸ”— apollo-link-firebase provides you a simple way to use Firebase with graphQL.
Stars: ✭ 415 (+1437.04%)
Mutual labels:  graphql, apollo-client
Persistgraphql
A build tool for GraphQL projects.
Stars: ✭ 409 (+1414.81%)
Mutual labels:  graphql, apollo-client
Apollo Errors
Machine-readable custom errors for Apollostack's GraphQL server
Stars: ✭ 405 (+1400%)
Mutual labels:  graphql, apollo-client
Searchkit
GraphQL API & React UI components for Elasticsearch. The easiest way to build a great search experience
Stars: ✭ 4,338 (+15966.67%)
Mutual labels:  graphql, apollo-client
Apollo Resolvers
Expressive and composable resolvers for Apollostack's GraphQL server
Stars: ✭ 428 (+1485.19%)
Mutual labels:  graphql, apollo-client
Example Storefront
Example Storefront is Reaction Commerce’s headless ecommerce storefront - Next.js, GraphQL, React. Built using Apollo Client and the commerce-focused React UI components provided in the Storefront Component Library (reactioncommerce/reaction-component-library). It connects with Reaction backend with the GraphQL API.
Stars: ✭ 471 (+1644.44%)
Mutual labels:  graphql, graphql-client
Pup
The Ultimate Boilerplate for Products.
Stars: ✭ 563 (+1985.19%)
Mutual labels:  graphql, graphql-client
Apollo Fetch
🐢 Lightweight GraphQL client that supports middleware and afterware
Stars: ✭ 581 (+2051.85%)
Mutual labels:  graphql, graphql-client
Graphql Ws
Coherent, zero-dependency, lazy, simple, GraphQL over WebSocket Protocol compliant server and client.
Stars: ✭ 398 (+1374.07%)
Mutual labels:  graphql, subscriptions

kikstart-graphql-client

Small NodeJS Wrapper around apollo-client that provides easy access to running queries, mutations and subscriptions.

GitHub code size in bytes GitHub repo size npm npm npm npm NPM npm GitHub last commit npm collaborators

Usage

Install dependency:

yarn add kikstart-graphql-client graphql

Import GraphQLClient:

import { GraphQLClient } from 'kikstart-graphql-client';

Create instance:

const client = new GraphQLClient({
  uri: 'http://localhost:4000/graphql',
  wsUri: 'ws://localhost:4000/graphql',
})

Run Query:

async getStatus() {
  const { data, error } = await this.client.runQuery(`
    query { status }
  `);
  if (error) {
    throw error
  }
  return data.status
}

Run Subscription:

client.runSubscription(query)
   .subscribe({
      next: res => console.log(JSON.stringify(res.data.statusSubscription, null, 2)),
      error: error => console.error(error),
      complete: () => console.log('done'),
   })
}

Credits

MIT License

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].