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

    // Provided methods
    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 { ... }
}
Expand description

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

Required Methods§

source

fn name(&self) -> &str

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

source

fn address(&self) -> &str

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

Provided Methods§

Implementations on Foreign Types§

source§

impl RemoteGraphQLDataSource for Arc<dyn GraphqlSource>

source§

fn name(&self) -> &str

source§

fn address(&self) -> &str

source§

fn tls(&self) -> bool

source§

fn query_path(&self) -> Option<&str>

source§

fn subscribe_path(&self) -> Option<&str>

source§

fn url_query(&self) -> String

source§

fn url_subscription(&self) -> String

Implementors§