(_id: String)
| 31 | #[juniper::graphql_object] |
| 32 | impl QueryRoot { |
| 33 | fn human(_id: String) -> FieldResult<Human> { |
| 34 | Ok(Human { |
| 35 | id: "1234".to_owned(), |
| 36 | name: "Luke".to_owned(), |
| 37 | appears_in: vec![Episode::NewHope], |
| 38 | home_planet: "Mars".to_owned(), |
| 39 | }) |
| 40 | } |
| 41 | } |
| 42 | |
| 43 | pub struct MutationRoot; |
nothing calls this directly
no outgoing calls
no test coverage detected