MCPcopy Create free account
hub / github.com/actix/examples / human

Method human

graphql/juniper/src/schema.rs:33–40  ·  view source on GitHub ↗
(_id: String)

Source from the content-addressed store, hash-verified

31#[juniper::graphql_object]
32impl 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
43pub struct MutationRoot;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected