Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@abtnode/client

Package Overview
Dependencies
Maintainers
3
Versions
779
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@abtnode/client

graphql client to read/write data on abt node

  • 1.0.11
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2.5K
decreased by-88.8%
Maintainers
3
Weekly downloads
 
Created
Source

ABT Node Client

Client library to connect webapp to Abt Node Daemon

Table of Contents

  • Development
  • Install
  • Usage
  • Debugging
  • Documentation

Development

upgrade code: you need two shells

  1. start demo server
cd ../gql
node demo.js
  1. upgrade code
npm run upgrade

Install

npm i @abtnode/client -S
# OR
yarn add @abtnode/client

Usage

const AbtNodeClient = require('@abtnode/client');

const client = new AbtNodeClient('http://localhost:3030/api/gql');
console.log({
  queries: client.getQueries(),
  subscriptions: client.getSubscriptions(),
  mutations: client.getMutations(),
});

client.listBlocklets().then(console.log);

Debugging

  • If you are in Node.js: DEBUG=@abtnode/client node script.js
  • If you are in Browser: localStorage.setItem('DEBUG', '@abtnode/client')

Documentation

Query arguments and response structure can be found: QUERIES.md

Keywords

FAQs

Package last updated on 18 Sep 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc