torchbox / wagtail-grapple

A Wagtail app that makes building GraphQL endpoints a breeze!
https://wagtail-grapple.readthedocs.io/en/latest/
Other
155 stars 59 forks source link

Query param not working for plurals #254

Open ghost opened 2 years ago

ghost commented 2 years ago

@register_query_field( "city", "citys", {"country_id": graphene.Int()}, required=True, plural_required=True, plural_item_required=True, )

I am trying to filter citys based on country but its not working { citys(countryId: 1){ id title } } Can someone help me on how to achieve this

ghost commented 2 years ago

@zerolab or any one please help me on this :/

zerolab commented 2 years ago

There's #225 which attempted to fix this, but it went in a direction I don't think is needed. Currently quite busy, so can't promise anything, sorry

ghost commented 2 years ago

@zerolab thanks for the reply.