diff --git a/src/schema.rs b/src/schema.rs index e2e02c7..455f709 100644 --- a/src/schema.rs +++ b/src/schema.rs @@ -21,6 +21,10 @@ impl Query { fn personById(database: &Database, id: String) -> Option { database.get_person(&id) } + + fn people(database: &Database) -> Vec { + database.list_people() + } } pub struct Mutations;