AWS Lambda is a serverless computing platform that makes it easy to build applications that run on
the AWS cloud. Hive Gateway is platform agnostic so they can fit together easily.
See Bundling Problems for more details about
how to load the supergraph and transports option.
gateway.ts
import { createGatewayRuntime } from "@graphql-hive/gateway-runtime";import http from "@graphql-mesh/transport-http";import supergraph from "./supergraph.js";export const gateway = createGatewayRuntime({ // All options available in `gateway.config.ts` configuration can also be passed here. supergraph, transports: { http, // For example, http transport is required for subgraphs using standard GraphQL over HTTP. },});