From eb4892476185e78f92368869afdc4d9fadc9b0e4 Mon Sep 17 00:00:00 2001 From: Lucien Cartier-Tilet Date: Thu, 5 Jan 2023 12:15:07 +0100 Subject: [PATCH] Add description for GraphQL query --- src/graphql.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/graphql.rs b/src/graphql.rs index 4c62f86..ae28681 100644 --- a/src/graphql.rs +++ b/src/graphql.rs @@ -12,7 +12,10 @@ pub struct Query; #[juniper::graphql_object(Context = Database)] impl Query { - #[graphql(name = "allLanguages")] + #[graphql( + name = "allLanguages", + description = "Retrieve all languages defined in the database" + )] fn all_languages(context: &Database) -> Vec { context.all_languages().unwrap() }