Azure Functions is a serverless environment that supports JavaScript. Hive Gateway is platform
agnostic and can be deployed to Azure Functions as well.
See Bundling Problems for more details about
how to load the supergraph and transports option.
import { app } from "@azure/functions";import { createGatewayRuntime } from "@graphql-hive/gateway-runtime";import http from "@graphql-mesh/transport-http";import supergraph from "./supergraph";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. },});app.http("graphql", { method: ["GET", "POST"], gateway,});
This site uses cookies for analytics and improving your experience.