File tree Expand file tree Collapse file tree 3 files changed +7
-3
lines changed
federation-v1/gateways/mesh-supergraph-bun Expand file tree Collapse file tree 3 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 1- FROM oven/bun:1.1.30
1+ FROM oven/bun:latest
22
33COPY package.json ./
44COPY .meshrc.yaml ./
55COPY .mesh ./.mesh
6+ COPY supergraph.graphql ./
67COPY index.ts ./
78
89ENV PORT 4000
Original file line number Diff line number Diff line change 1- import { createBuiltMeshHTTPHandler } from './.mesh'
1+ import { createGatewayRuntime } from '@graphql-hive/gateway' ;
22
33const server = Bun . serve ( {
44 port : Bun . env . PORT ? parseInt ( Bun . env . PORT ) : 4000 ,
5- fetch : createBuiltMeshHTTPHandler ( ) ,
5+ fetch : ( createGatewayRuntime ( {
6+ supergraph : ( ) => Bun . file ( './supergraph.graphql' ) . text ( ) ,
7+ } ) as any ) ,
68} )
79
810console . info ( `Server is running on http://localhost:${ server . port } /graphql` ) ;
Original file line number Diff line number Diff line change 1212 "@graphql-mesh/http" : " ^0.103.0" ,
1313 "@graphql-mesh/store" : " ^0.102.0" ,
1414 "@graphql-mesh/types" : " ^0.102.0" ,
15+ "@graphql-hive/gateway" : " 1.3.0-alpha-20241021113825-68afe0a0364f9599b9937b5094a6f564ac40b14d" ,
1516 "bun-types" : " ^1.0.0"
1617 }
1718}
You can’t perform that action at this time.
0 commit comments