graphql-schema-registry-tooling
TypeScript icon, indicating that this package has built-in type declarations

0.2.0 • Public • Published

graphql-schema-registry-tooling

npm

This package makes it easy to push and retrieve schemas from graphql-schema-registry.

Getting started

Yarn
yarn add graphql-schema-registry-tooling
NPM
npm install graphql-schema-registry-tooling

Pushing graphql schema to registry

Add config to your .env file

REGISTRY_URL=http://graphql-registry
REGISTRY_SERVICE_NAME=cart
REGISTRY_SERVICE_URL=http://cart

Add command to your package.json

graphql-schema-registry push src/schema.graphql

For more commands and options run

graphql-schema-registry help

Retrieving graphql schema from registry

Add the module import to your .ts file

import { retrieveSchemas } from "graphql-schema-registry-tooling";

Add command to your package.json

const serviceSchemas = await retrieveSchemas()

Readme

Keywords

none

Package Sidebar

Install

npm i graphql-schema-registry-tooling

Weekly Downloads

0

Version

0.2.0

License

MIT

Unpacked Size

3.97 kB

Total Files

3

Last publish

Collaborators

  • basselalaraaj