graphql-schema-registry-tooling
v0.2.0
Published
[](https://www.npmjs.com/package/graphql-schema-registry-tooling)
Readme
graphql-schema-registry-tooling
This package makes it easy to push and retrieve schemas from graphql-schema-registry.
Getting started
Yarn
yarn add graphql-schema-registry-toolingNPM
npm install graphql-schema-registry-toolingPushing graphql schema to registry
Add config to your .env file
REGISTRY_URL=http://graphql-registry
REGISTRY_SERVICE_NAME=cart
REGISTRY_SERVICE_URL=http://cartAdd command to your package.json
graphql-schema-registry push src/schema.graphqlFor more commands and options run
graphql-schema-registry helpRetrieving 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()