Add comment to code

This commit is contained in:
Ramon Wenger 2020-03-10 11:39:12 +01:00
parent ad8409f783
commit 3e2b1f66a9
1 changed files with 6 additions and 0 deletions

View File

@ -46,6 +46,12 @@ def get_graphql_query(filename):
def get_graphql_mutation(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 from django.conf import settings
with io.open(os.path.join(settings.GRAPHQL_MUTATIONS_DIR, filename)) as f: with io.open(os.path.join(settings.GRAPHQL_MUTATIONS_DIR, filename)) as f: