Use this strategy to get documents from the database by specified formula.
databaseName(String databaseName): name of the database to read data from, use "
server!!path/database.nsf" format; when omitted, current database is used
selectQuery(String query): selection formula to apply to the database; mandatory. This is exactly the same you would write as view selection formula in Notes.
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 all documents from database, that match the selection formula. /cat1cat2?count=5