cloudapi-gql

8.0.0 • Public • Published

cloudapi-gql

License: MPL 2.0 Build Status

hapi plugin that exposes CloudApi through GraphQL.

Table of Contents

Install

npm install cloudapi-gql

Options

  • authStrategy: name of the hapi auth strategy to use for /graphql route
  • keyPath private key file path for the key associated with Triton account
  • keyId: string in the form of /${SDC_ACCOUNT}/keys/${SDC_KEY_ID}
  • apiBaseUrl: cloud API base URL to connect to

Usage

const server = new Hapi.Server();
await server.register({ plugin: CloudApiGQL, options: { authStrategy, keyPath, keyId, apiBaseUrl } });

Local development

npm run dev

npm run faker

Readme

Keywords

none

Package Sidebar

Install

npm i cloudapi-gql

Weekly Downloads

12

Version

8.0.0

License

MPL-2.0

Unpacked Size

3.04 MB

Total Files

152

Last publish

Collaborators

  • cjihrig
  • lloydbenson
  • ramitos
  • reverentgeek
  • wyatt