fuel_core/schema/
health.rs

1use async_graphql::Object;
2
3#[derive(Default)]
4pub struct HealthQuery;
5
6#[Object]
7impl HealthQuery {
8    /// Returns true when the GraphQL API is serving requests.
9    async fn health(&self) -> bool {
10        true
11    }
12}