Little rename
This commit is contained in:
parent
d2eda2fc7c
commit
56df8ebf3d
|
@ -17,8 +17,8 @@ impl Person {
|
||||||
pub struct Query;
|
pub struct Query;
|
||||||
#[graphql_object(context = Database)]
|
#[graphql_object(context = Database)]
|
||||||
impl Query {
|
impl Query {
|
||||||
#[graphql(arguments(id(description = "id of the human")))]
|
#[graphql(arguments(id(description = "id of the person")))]
|
||||||
fn human(database: &Database, id: String) -> Option<Person> {
|
fn personById(database: &Database, id: String) -> Option<Person> {
|
||||||
database.get_person(&id)
|
database.get_person(&id)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue