graphql-tools icon indicating copy to clipboard operation
graphql-tools copied to clipboard

Helper package to create a basic Stitching gateway based on directives via HTTP

Open ardatan opened this issue 1 year ago • 1 comments

import { createStitchingDirectivesHTTPGateway } from '@graphql-tools/stitching-directives-http';

const gatewaySchema = createStitchingDirectivesHTTPGateway([
  {
     url: 'http://localhost:4001/graphql',
     sdl: /* GraphQL */ `...`
  }
])

const yoga = createYoga({ schema: gatewaySchema })

ardatan avatar Mar 14 '23 12:03 ardatan