How MongoDB Queries in Batch

  mongodb, question

Requirements:

When querying the article list in the management interface, the total number of articles that meet the query criteria is displayed at the same time, such as the article list containing artificial intelligence in the content of the search articles on the page, and the query statements corresponding to the total number of articles are displayed at the same time.

Find ({text:/artificial intelligence/})
 Count ({text:/artificial intelligence/})

But how do you query in batches? Similar to bulkWrite bulk update insert

db.posts.bulkQuery([
 {findMany:{text:/ artificial intelligence/}},
 {count:{text:/ artificial intelligence/}}
 ])

And it is best that the MongoDB is also internally queried concurrently

Do you know about asynchronous programming?