Closed dennis-hh closed 2 years ago
@dennis-hh we've fixed it in version 2.0.0-rc.2
dedicated for Strapi v4. Next in the queue there will be fix for v3.
Closing, we won't provide this fix for v3. The 2.x
version dedicated for Strapi v4 got it implemented by default.
When requesting comments via
findAllInHierarchy
, comments that have theremoved
flag set totrue
are omitted (this is in line with the REST API). However, when requesting comments viafindAll
or via a relation, they are included. I think it would be best if developers could control this behavior. In our case, we'd like to display something like "this comment has been removed", which is not possible when usingfindAllInHierarchy
query. EDIT: As a workaround, I tried to do it like this:findAllInHierarchy(relation: "myrelation:1" where: "{\"_or\":[{ \"removed_null\": false },{\"removed\":false}]}")
. However, this doesn't work, and I think the issue lies inservices/comments.js
, line 158.baseCriteria
is used there, but it should becriteria
. Also, using JSON as a string instead of native JSON is not nice (see #81).