graphql client to read/write data on abt node
npm install @blocklet/server-jsClient library to connect webapp to Abt Node Daemon
- Development
- Install
- Usage
- Debugging
- Documentation
upgrade code: you need two shells
1. start demo server
``shell`
cd ../gql
node demo.js
2. upgrade code
`shell`
npm run upgrade
`shell`
npm i @blocklet/server-js -SOR
yarn add @blocklet/server-js
`js
const AbtNodeClient = require('@blocklet/server-js');
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);
`
- If you are in Node.js: DEBUG=@blocklet/server-js node script.jslocalStorage.setItem('DEBUG', '@blocklet/server-js')`
- If you are in Browser:
Query arguments and response structure can be found: QUERIES.md