graphql-tools
graphql-tools copied to clipboard
Helper package to create a basic Stitching gateway based on directives via HTTP
import { createStitchingDirectivesHTTPGateway } from '@graphql-tools/stitching-directives-http';
const gatewaySchema = createStitchingDirectivesHTTPGateway([
{
url: 'http://localhost:4001/graphql',
sdl: /* GraphQL */ `...`
}
])
const yoga = createYoga({ schema: gatewaySchema })