1
0
mirror of https://github.com/actix/examples synced 2025-08-31 10:06:59 +02:00

Fix function name that camel to snake (#332)

This commit is contained in:
dyoshikawa
2020-06-18 07:33:01 +09:00
committed by GitHub
parent 22c8eaae87
commit 5b3c996774

View File

@@ -45,7 +45,7 @@ pub struct MutationRoot;
#[juniper::object] #[juniper::object]
impl MutationRoot { impl MutationRoot {
fn createHuman(new_human: NewHuman) -> FieldResult<Human> { fn create_human(new_human: NewHuman) -> FieldResult<Human> {
Ok(Human { Ok(Human {
id: "1234".to_owned(), id: "1234".to_owned(),
name: new_human.name, name: new_human.name,