An example of using Webpack 5 Module Federation to orchestrate an Apollo Federation Gateway.
> yarn
> yarn build
> yarn start
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
}