pub trait RemoteGraphQLDataSource: Sync + Send + 'static {
    fn name(&self) -> &str;
    fn address(&self) -> &str;

    fn tls(&self) -> bool { ... }
    fn query_path(&self) -> Option<&str> { ... }
    fn subscribe_path(&self) -> Option<&str> { ... }
    fn url_query(&self) -> String { ... }
    fn url_subscription(&self) -> String { ... }
    fn will_send_request<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        request: &'life1 mut Request,
        ctx: &'life2 Context
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
, { ... } fn did_receive_response<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        response: &'life1 mut Response,
        ctx: &'life2 Context
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
, { ... } }
Expand description

! Represents a connection between your federated gateway and one of your subgraphs.

Required Methods

! If you have a multiple sources they must have a unique name

! Example countries.trevorblades.com You shouldn`t use http(s)://

Provided Methods

! Override willSendRequest to modify your gateway’s requests to the subgraph before they’re sent.

! Override willSendRequest to modify your gateway’s requests to the subgraph before they’re sent.

Implementations on Foreign Types

Implementors