Skip to content

sunrise-choir/ssb-patchql-stdio-js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#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

About

Node module to use ssb-patchql over stdio

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

Packages

No packages published