In my Marklogic DB I have mixed documents formats. And I would like to get only JSON documents from the collection. I have a query builder statement like this
const documents = await dbClient.documents
.query(
qb
.where(qb.collection('myCollection'))
.slice(0, 10)
)
.result();
Is it possible to use some filter here to get only JSON documents?