1
0
mirror of https://github.com/actix/examples synced 2025-02-02 09:39:03 +01: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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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