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: