Crate apollo_gateway_rs

source ·

Modules§

Structs§

  • Context give you access to request data like headers, app_data and extensions.
  • If you want to load your sources from config you can use DefaultSource. If you not provide tls in your config default value would be false
  • Gateway-server will parse a schema from your remote sources, fetch request and make subscription. Don’t forget to pass it into app_data. See example:

Traits§

  • Implement GraphqlSourceMiddleware for your source, if you want to modify requests to the subgraph before they’re sent and modify response after it.
  • Represents a connection between your federated gateway and one of your subgraphs.