Skip to content

Commit

Permalink
CM-359: get beneficiary_data_schema instead of json_ext (#47)
Browse files Browse the repository at this point in the history
* CM-359: allow to fetch schema fields

* CM-359: change json_ext to beneficiary_data_schema

---------

Co-authored-by: Jan <[email protected]>
  • Loading branch information
jdolkowski and Jan authored Jan 15, 2024
1 parent bba69b5 commit 21f034c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion social_protection/gql_queries.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ class BenefitPlanSchemaFieldsGQLType(ObjectType):
schema_fields = graphene.List(graphene.String)

def resolve_schema_fields(self, info, **kwargs):
schemas = self.values_list("json_ext__properties", flat=True)
schemas = self.values_list("beneficiary_data_schema__properties", flat=True)
field_list = set(
f'json_ext__{field}'
for schema in schemas # Iterate over each schema
Expand Down

0 comments on commit 21f034c

Please sign in to comment.