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.
With route defined above, URL
will return all documents from database, that match the selection formula. /cat1cat2
Returned JSON will contain an array of such documents: