mirror of
https://github.com/actix/examples
synced 2025-02-08 20:06:07 +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]
|
#[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,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user