Hey @Theodor_Diaconu! Thanks for reaching out and the thorough example.
Unfortunately this is a limitation with the current implementation of recursive types in the driver. We currently only support recursive types where the recursion is direct - meaning that a type has a property of the same type. Your example is an example of mutual recursion, which we don’t support. This occurs because the Post class contains a field of type User but the User class also has a field of type Post[].
As always, a workaround is to cast your Filter as any.
We’re planning on improving the Filter type more in the future but we want to take the time to get it correct, rather than piece-mealing changes onto it release-by-release so the fix might not be ready in the near future.