Little rename

This commit is contained in:
Alex Wright 2021-07-11 16:11:54 +00:00
parent d2eda2fc7c
commit 56df8ebf3d
1 changed files with 2 additions and 2 deletions

View File

@ -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)
}
}