Django – Filtering on annotated count field returns unexpected values
I have a function that filters a Django queryset on the number of linked objects. Used inside a graphene-django project, it allows me to dynamically create filter fields for a bunch of objects without writing super repetitive code.