https://github.com/jacob-ebey/federated-gql
An example of using Webpack 5 Module Federation to orchestrate an Apollo Federation Gateway
https://github.com/jacob-ebey/federated-gql
Last synced: 11 months ago
JSON representation
An example of using Webpack 5 Module Federation to orchestrate an Apollo Federation Gateway
- Host: GitHub
- URL: https://github.com/jacob-ebey/federated-gql
- Owner: jacob-ebey
- Created: 2020-04-23T19:47:48.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2023-01-06T04:18:16.000Z (over 3 years ago)
- Last Synced: 2025-04-22T07:01:46.266Z (about 1 year ago)
- Language: JavaScript
- Size: 1.39 MB
- Stars: 7
- Watchers: 2
- Forks: 1
- Open Issues: 19
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Federated GraphQL
An example of using Webpack 5 Module Federation to orchestrate an Apollo Federation Gateway.
## Getting started
```shell
> yarn
> yarn build
> yarn start
```
### Example query
```graphql
query Test {
pdp(sku: "rofl") {
product {
...Product
}
}
}
fragment Product on Product {
sku
name
price {
...ProductPrice
}
recommendations {
sku
name
price {
...ProductPrice
}
}
}
fragment ProductPrice on ProductPrice {
currencyCode
listPrice {
...PriceRange
}
salePrice {
...PriceRange
}
}
fragment PriceRange on ProductPriceRange {
high
low
}
```