I am using MarkLogic Node.js Client API. I am running a query in which I want to specify multiple collections; but I am getting zero results. However, if I specify just one collection; the query works. Below is the example with one collection:
Collections: test1 and test2
Query with 1 collection: Works
db.documents.query(
qb.where(
qb.collection("test1"),
qb.value("productId","8989")
))
.result();
Please help as how I can specify two collections?
Below query returns zero results:
db.documents.query(
qb.where(
qb.collection("test1"),qb.collection("test2"),
qb.value("productId","8989")
))
.result();