reset query.newNodes to [] when starting another query round