From df71cadabdd73687bc6a9c41262b8c7b1dc24ecc Mon Sep 17 00:00:00 2001 From: dyoshikawa Date: Tue, 16 Jun 2020 17:30:03 +0900 Subject: [PATCH] fix function name that camel to snake --- juniper/src/schema.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/juniper/src/schema.rs b/juniper/src/schema.rs index 889ae954..cbec1398 100644 --- a/juniper/src/schema.rs +++ b/juniper/src/schema.rs @@ -45,7 +45,7 @@ pub struct MutationRoot; #[juniper::object] impl MutationRoot { - fn createHuman(new_human: NewHuman) -> FieldResult { + fn create_human(new_human: NewHuman) -> FieldResult { Ok(Human { id: "1234".to_owned(), name: new_human.name,