Skip to content
Snippets Groups Projects
Commit 334cad0c authored by LouisGendron's avatar LouisGendron
Browse files

GraphQL DataFileType annotations treated as returned as JSON instead of JSONString

parent a137414f
No related branches found
No related tags found
3 merge requests!111Populate /secure/my-sharegroups/ with the same groups that are available to a...,!109Populate /secure/my-sharegroups/ with the same groups that are available to a...,!108Resolve "Datafile annotation return as json in graphql output instead of jsonstring"
......@@ -7,6 +7,7 @@ from django.db import connection
from django.utils import timezone
from graphql.error import GraphQLError
from graphene_django.types import DjangoObjectType
from graphene.types.generic import GenericScalar
from graphene_django.views import GraphQLView
from graphene_django.forms.mutation import DjangoModelFormMutation
......@@ -38,6 +39,7 @@ class DataSetType(DjangoObjectType):
fields = "__all__"
created_by_user = graphene.Boolean()
annotations = GenericScalar()
def resolve_created_by_user(self, info):
return self.created_by == info.context.user.profile
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment