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

This commit is contained in:
Dylan Anthony 2022-09-23 11:58:30 -06:00
parent 9b79c2232b
commit d0a5a50046
No known key found for this signature in database
GPG Key ID: F14E2067C8BF5030
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,
}]