JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1
  • Score
    100M100P100Q32811F
  • License MIT

Package Exports

  • @rxdi/graph-gateway

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@rxdi/graph-gateway) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

@rxdi/graph-gatway

Create easy graph gatway from existing Graphql endpoints

Features

  • Merge multiple Remote graphql servers to single schema
  • Microservice architecture

Installation

npm i -g @rxdi/graph-gatway

Usage

import { Module, CoreModule, Bootstrap } from '@gapi/core';
import { GraphGatewayModule } from '@rxdi/graph-gatway';

@Module({
  imports: [
    GraphGatewayModule.forRoot([
      {
        link: 'http://localhost:9000/graphql',
        name: 'Graph1'
      },
      {
        link: 'http://localhost:9001/graphql',
        name: 'Graph2'
      }
    ]),
    CoreModule.forRoot(),
  ]
})
export class AppModule {}

Bootstrap(AppModule).subscribe(() => console.log('Started'));