From c1cd2aff76ce7a785136ca03eb0e6db56ff57a19 Mon Sep 17 00:00:00 2001 From: sudan45 Date: Tue, 1 Oct 2024 15:01:31 +0545 Subject: [PATCH] Change filter genericscalartype into filtertype --- apps/analysis/schema.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/apps/analysis/schema.py b/apps/analysis/schema.py index 3ae06c2a49..511d920748 100644 --- a/apps/analysis/schema.py +++ b/apps/analysis/schema.py @@ -196,13 +196,18 @@ class Meta: 'title', 'main_statement', 'information_gap', - 'filters', ) assignee = graphene.Field(UserType, required=True) analysis_id = graphene.ID(source='analysis_id', required=True) cloned_from = graphene.ID(source='cloned_from_id') analyzed_entries_count = graphene.Int(required=True) + filters = graphene.List(graphene.NonNull( + type('FilterDataType', (graphene.ObjectType,), { + 'id': graphene.String(), + 'key': graphene.String(), + 'unique_id': graphene.String() + }))) # XXX: N+1 and No pagination statements = graphene.List(graphene.NonNull(AnalyticalStatementType))