view:getEntriesByKey(key: string) --table Retrieves entries from the view that match the specified key.
The return value is an array-like table containing view entry objects. The structure of these objects is shown in the example of the {{view/view:getEntries}} function.
view:getEntries() --table Retrieves all entries from the view.
The return value is an array-like table containing view entry objects. The structure of these objects is shown in the example below.
local entries = view:getEntries()
for _, entry in pairs(entries) do
print(entry.noteId) -- noteId of the ViewEntry
print(entry:getColumn(1)) -- First column of the ViewEntry
end