Use this strategy to get all documents from the view.
databaseName(String databaseName): name of the database to read data from, use "
server!!path/database.nsf" format; when omitted, current database is used
viewName(String viewName): name of the view; mandatory
Let's assume our database has view called
count: number or records to return, default is 10
start: position in the view to start from, default value is 1
With route defined above, URL
will return 5 documents from view ?start=100&count=5
(ByTopic) starting at position 100.
Returned JSON will contain an array of documents from the view, such as: