docs: Fix `&str` -> `ID` in fed docs
This commit is contained in:
parent
9b79c2232b
commit
d0a5a50046
|
@ -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,
|
||||
}]
|
||||
|
|
Loading…
Reference in New Issue