Skip to content

Latest commit

 

History

History
54 lines (32 loc) · 848 Bytes

README.md

File metadata and controls

54 lines (32 loc) · 848 Bytes

#ssb-patchql-stdio-js

Talk to patchql over stdio via json-rpc. It's like native bindings but easier.

Usage

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 } }

API

var CreatePatchql = require('ssb-patchql-stdio-js')
const patchql = CreatePatchql() //TODO opts

See api_formatting.md for tips.

Install

With npm installed, run

$ npm install ssb-patchql-stdio-js

Acknowledgments

ssb-patchql-stdio-js was inspired by..

See Also

License

LGPL-3.0