From 56df8ebf3d91dc7bb92c26c955fb54c4cb49c883 Mon Sep 17 00:00:00 2001 From: Alex Wright Date: Sun, 11 Jul 2021 16:11:54 +0000 Subject: [PATCH] Little rename --- src/schema.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) } }