diff --git a/src/schema.rs b/src/schema.rs index f51892f..e2e02c7 100644 --- a/src/schema.rs +++ b/src/schema.rs @@ -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 { + #[graphql(arguments(id(description = "id of the person")))] + fn personById(database: &Database, id: String) -> Option { database.get_person(&id) } }