Trait RemoteGraphQLDataSource

Source
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§