#ssb-patchql-stdio-js
Talk to patchql over stdio via json-rpc. It's like native bindings but easier.
const CreatePatchql = require('ssb-patchql-stdio-js')
const patchql = CreatePatchql() //TODO opts
// Our graphql query
const cursorQuery = '{dbCursor}'
patchql.query(cursorQuery, console.log)
with an empty db it will log something like:
{ data: { dbCursor: null } }
var CreatePatchql = require('ssb-patchql-stdio-js')
const patchql = CreatePatchql() //TODO opts
See api_formatting.md for tips.
With npm installed, run
$ npm install ssb-patchql-stdio-js
ssb-patchql-stdio-js was inspired by..
LGPL-3.0