1
2
3
4
5
6
7
8
9
10
11
12
use async_graphql::Object;

#[derive(Default)]
pub struct HealthQuery;

#[Object]
impl HealthQuery {
    /// Returns true when the GraphQL API is serving requests.
    async fn health(&self) -> bool {
        true
    }
}