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:
parent
22c8eaae87
commit
5b3c996774
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user