Skip to content

Commit 008a539

Browse files
authored
Add Helix implementation using @apollo/subgraph (#235)
Introduces Helix to the testing repo leveraging `@apollo/subgraph`'s `buildSubgraphSchema` function, giving full Fed 1 / Fed 2 compatibility (excluding federated tracing).
1 parent 0b9a83c commit 008a539

File tree

8 files changed

+1730
-0
lines changed

8 files changed

+1730
-0
lines changed

implementations/helix/Dockerfile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
FROM node:14-alpine
2+
WORKDIR /web
3+
COPY package.json package-lock.json products.graphql tsconfig.json ./
4+
COPY src ./src
5+
RUN npm install
6+
RUN npm run build
7+
EXPOSE 4001
8+
USER node
9+
CMD node dist/index.js
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
services:
2+
products:
3+
# must be relative to the root of the project
4+
build: implementations/helix
5+
ports:
6+
- 4001:4001

implementations/helix/metadata.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
fullName: GraphQL Helix
2+
language: JavaScript / TypeScript
3+
documentation: https://graphql-helix.vercel.app

0 commit comments

Comments
 (0)