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