from = from.substring(0, from.length() - 1);
String to = PathUtils.concat(path, "z");
to = Utils.getIdFromPath(to);
to = to.substring(0, to.length() - 2) + "0";
List<Map<String, Object>> list = store.query(DocumentStore.Collection.NODES, from, to, limit);
Children c = new Children(path, rev);
Set<Revision> validRevisions = new HashSet<Revision>();
for (Map<String, Object> e : list) {
// filter out deleted children
if (getLiveRevision(e, rev, validRevisions) == null) {
continue;