From 7b9e9d2da5d85f23d43724fe2ca5012918ea54be Mon Sep 17 00:00:00 2001
From: Santo Cariotti <santo@dcariotti.me>
Date: Fri, 23 Aug 2024 22:19:32 +0200
Subject: Add doc

---
 src/graphql/query.rs | 2 ++
 1 file changed, 2 insertions(+)

(limited to 'src/graphql/query.rs')

diff --git a/src/graphql/query.rs b/src/graphql/query.rs
index 3d72b2e..9a7ac87 100644
--- a/src/graphql/query.rs
+++ b/src/graphql/query.rs
@@ -1,10 +1,12 @@
 use crate::graphql::types::{position, user};
 use async_graphql::{Context, Object};
 
+/// Query struct
 pub struct Query;
 
 #[Object]
 impl Query {
+    /// Returns the API version. It is like a "greet" function
     async fn api_version(&self) -> &'static str {
         "1.0"
     }
-- 
cgit v1.2.3-18-g5258