document_find_by_id() doesn't allow you to iterate over the documents.
document_find_by_id()
—Reply to this email directly or view it on GitHub.