Trait async_graphql::dataloader::Loader [−][src]
This is supported on crate feature
dataloader
only.Trait for batch loading.
Associated Types
type Value: Send + Clone + 'static
[src][−]
type of value.
type Error: Send + Clone + 'static
[src][−]
Type of error.
Required methods
fn load<'life0, 'life1, 'async_trait>(
&'life0 self,
keys: &'life1 [K]
) -> Pin<Box<dyn Future<Output = Result<HashMap<K, Self::Value>, Self::Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src][−]
&'life0 self,
keys: &'life1 [K]
) -> Pin<Box<dyn Future<Output = Result<HashMap<K, Self::Value>, Self::Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
Load the data set specified by the keys
.