An open API service indexing awesome lists of open source software.

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

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
}
```