Construction of a query for entity with ‘any’ array type

I defined an entity with a property of type ‘any’ , i am storing an array of ids in this property and i want to filter entities where this property contains a specific id.

To optimize query to filter entities, you will need to use indexes, here is an example on how to implement it. As for your specific use case, it will not be possible for now because any type couldn’t be indexed.

1 Like