rishabhdaim opened a new pull request, #3114:
URL: https://github.com/apache/jackrabbit-oak/pull/3114

   ## Summary
   
   Fix `oak.countDirectChildren` so non-root paths count direct child documents 
instead of the next depth level.
   
   ## Changes
   
   - Correct depth selection in `oak-run/src/main/js/oak-mongo.js`.
   - Preserve root-path behavior.
   - Correct the method return documentation.
   
   ## Test Plan
   
   - Verified against local MongoDB database `cm-p55811-e576007-database`.
   - Verified root and non-root counts match equivalent raw MongoDB queries.
   - Passed `node --check oak-run/src/main/js/oak-mongo.js`.
   
   ## Links
   
   - Jira: https://issues.apache.org/jira/browse/OAK-12396
   
   Co-Authored-By: OpenAI Codex <[email protected]>


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to