@ssb-graphql/pataka

1.1.1 • Public • Published

GraphQL for Secure Scuttlebutt

Pataka GraphQL types and resolvers for Secure Scuttlebutt. It provides primitives for loading data Whakapapa data summaries.

Usage

npm i -S @ssb-graphql/pataka

Example Usage

const ahauServer = require('ahau-graphql-server')

const Server = require('ssb-server')
const Config = require('ssb-config/inject')

const config = Config({})

const sbot = Server
  .use(require('ssb-profile')) // << required
  .use(require('ssb-invite')) // << required
  .call(null, config)

const server = await ahauServer({
  schema: [
    require('@ssb-graphql/main')(sbot)
    require('@ssb-graphql/profile')(sbot)
    require('@ssb-graphql/pataka')(sbot)
  ]
})

Requirements

An ssb-server with the ssb-profile plugin:

API

See /src/typeDefs.js for the most up to date details on what's offered by this module.

Testing

run npm test to run tests

Package Sidebar

Install

npm i @ssb-graphql/pataka

Weekly Downloads

1

Version

1.1.1

License

AGPL-3.0

Unpacked Size

12.1 kB

Total Files

13

Last publish

Collaborators

  • luandro
  • mixmix
  • staltz
  • chereseeriepa
  • christianbundy
  • ben-tai