diff options
Diffstat (limited to 'src/graphql/query.rs')
-rw-r--r-- | src/graphql/query.rs | 2 |
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" } |