summaryrefslogtreecommitdiff
path: root/src/graphql/query.rs
diff options
context:
space:
mode:
authorSanto Cariotti <santo@dcariotti.me>2024-08-23 22:19:32 +0200
committerSanto Cariotti <santo@dcariotti.me>2024-08-23 22:19:32 +0200
commit7b9e9d2da5d85f23d43724fe2ca5012918ea54be (patch)
tree801ccae65d27fcf69bfca5db18265fbb7b5d7f21 /src/graphql/query.rs
parentcb1aa9668a967fe875e716469ccf936ed8693ad3 (diff)
Add doc
Diffstat (limited to 'src/graphql/query.rs')
-rw-r--r--src/graphql/query.rs2
1 files changed, 2 insertions, 0 deletions
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"
}