docs: Fix `&str` -> `ID` in fed docs

This commit is contained in:
Dylan Anthony 2022-09-23 11:58:30 -06:00
parent 084779af36
commit ed99baef46
1 changed files with 2 additions and 2 deletions

View File

@ -288,14 +288,14 @@ impl Query {
#[graphql(provides = "humanName")]
async fn out_of_stock_products(&self) -> Vec<Product> {
vec![Product {
id: "1".to_string(),
id: "1".into(),
human_name: "My Product".to_string(),
in_stock: false,
}]
}
async fn discontinued_products(&self) -> Vec<Product> {
vec![Product {
id: "2".to_string(),
id: "2".into(),
human_name: String::new(), // This is ignored by the router
in_stock: false,
}]