This repository contains the material used in the GraphQL Hive Workshop at GraphQL Conf 2023.
You can find the workshop slides here.
The video for the workshop will be added later on as it is available on YouTube.
- Install Docker on your machine
- Install Node.js on your machine
- Install pnpm on your machine
pnpm install
pnpm graphql-inspector diff \
inspector-schemas/add-new-field-before.graphql \
inspector-schemas/add-new-field-after.graphql
pnpm graphql-inspector diff \
inspector-schemas/make-field-type-nullable-before.graphql \
inspector-schemas/make-field-type-nullable-after.graphql
pnpm graphql-inspector diff \
inspector-schemas/make-field-type-non-nullable-before.graphql \
inspector-schemas/make-field-type-non-nullable-after.graphql
pnpm graphql-inspector diff \
inspector-schemas/cha
nge-field-type-before.graphql \
inspector-schemas/change-field-type-after.graphql
pnpm run start:hive
pnpm run start:subgraphs
pnpm hive schema:publish \
./subgraphs/echo/src/main.ts \
--service echo \
--url http://localhost:7005
pnpm hive schema:publish \
./subgraphs/accounts/src/main.ts \
--service accounts \
--url http://localhost:7001
pnpm hive schema:check \
./subgraphs/products/src/main.ts \
--service products
pnpm hive schema:publish \
./subgraphs/products/src/main.ts \
--service products \
--url http://localhost:7003
pnpm hive schema:check \
./subgraphs/inventory/src/main.ts \
--service inventory
pnpm hive schema:publish \
./subgraphs/inventory/src/main.ts \
--service inventory \
--url http://localhost:7002
pnpm hive schema:check \
./subgraphs/reviews/src/main.ts \
--service reviews
pnpm hive schema:publish \
./subgraphs/reviews/src/main.ts \
--service reviews \
--url http://localhost:7004
curl -fsSL https://graphql-hive.com/apollo-router-download.sh | bash
HIVE_CDN_ENDPOINT="http://localhost:8082/artifacts/v1/653d03a9-16c0-407d-ad26-78f5c10c76d8" \
HIVE_CDN_KEY="hv2ODFlNDk0YzctMmQ1ZC00YzZkLWJhMmEtODYzYmI1MGYzODYyOjJkNzViZTk2MjVjMjUzOWQzMTZhZDc2NGU5Y2I3MDBhZGNlYjUwMWE=" \
./router --dev
HIVE_TOKEN="99c12887d40e9ad41aaa0e46677b064b" \
HIVE_ENDPOINT="http://localhost:8081" \
HIVE_CDN_ENDPOINT="http://localhost:8082/artifacts/v1/653d03a9-16c0-407d-ad26-78f5c10c76d8" \
HIVE_CDN_KEY="hv2ODFlNDk0YzctMmQ1ZC00YzZkLWJhMmEtODYzYmI1MGYzODYyOjJkNzViZTk2MjVjMjUzOWQzMTZhZDc2NGU5Y2I3MDBhZGNlYjUwMWE=" \
./router --dev --config supergraph.yaml