(new_human: NewHuman)
| 45 | #[juniper::graphql_object] |
| 46 | impl MutationRoot { |
| 47 | fn create_human(new_human: NewHuman) -> FieldResult<Human> { |
| 48 | Ok(Human { |
| 49 | id: "1234".to_owned(), |
| 50 | name: new_human.name, |
| 51 | appears_in: new_human.appears_in, |
| 52 | home_planet: new_human.home_planet, |
| 53 | }) |
| 54 | } |
| 55 | } |
| 56 | |
| 57 | pub type Schema = RootNode<'static, QueryRoot, MutationRoot, EmptySubscription>; |
nothing calls this directly
no outgoing calls
no test coverage detected