parent
56df8ebf3d
commit
ca6bc8d7d1
|
@ -21,6 +21,10 @@ impl Query {
|
||||||
fn personById(database: &Database, id: String) -> Option<Person> {
|
fn personById(database: &Database, id: String) -> Option<Person> {
|
||||||
database.get_person(&id)
|
database.get_person(&id)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fn people(database: &Database) -> Vec<Person> {
|
||||||
|
database.list_people()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
pub struct Mutations;
|
pub struct Mutations;
|
||||||
|
|
Loading…
Reference in New Issue