From 3e2b1f66a9ae4dcaf81d7e0a24b0b88c54567df9 Mon Sep 17 00:00:00 2001 From: Ramon Wenger Date: Tue, 10 Mar 2020 11:39:12 +0100 Subject: [PATCH] Add comment to code --- server/api/utils.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/server/api/utils.py b/server/api/utils.py index 9318513d..c263372d 100644 --- a/server/api/utils.py +++ b/server/api/utils.py @@ -46,6 +46,12 @@ def get_graphql_query(filename): def get_graphql_mutation(filename): + """ + Get the GraphQL mutation from the mutation directory + :param filename: the filename of the mutation + :return: the mutation + """ + from django.conf import settings with io.open(os.path.join(settings.GRAPHQL_MUTATIONS_DIR, filename)) as f: