Open omarkamal opened 1 year ago
I have the same problem. Any news?
Hey,
There is no option to have dynamic filters like you ask, the only way to do filtering is Nested Filters or Filters For.
Dynamic filters like this, might be something that I'll add in the future, right now it's not planned.
Say I have a serializer like this :
now every device need not have all three, some might have just a fan and a light, some might have just a light.
I don't want to display empty arrays every single time. How do I selectively hide them if the array size is zero? I tried adding if: -> { object.fans.count > 0 } but that didn't seem to work, I still got an empty array.