---
title: "Discussion on \"How To Get The Total Number Of Returned Rows From A Query In MongoDB: Simplest Explanation\" | Hashnode"
description: "Discussion on \"How To Get The Total Number Of Returned Rows From A Query In MongoDB: Simplest Explanation\". In this post, I will show you the quickest way to get the total number of results that your query returned. \nWhen I was looking online, I could only find long-winded answers to this question, so here is my attempt at a simple and straight solution. \n..."
url: "https://hashnode.com/posts/how-to-get-the-total-number-of-returned-rows-from-a-query-in-mongodb-simplest-explanation/633e2908482cbecef103c77a"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [How To Get The Total Number Of Returned Rows From A Query In MongoDB: Simplest Explanation](https://javasper.hashnode.dev/how-to-get-the-total-number-of-returned-rows-from-a-query-in-mongodb-simplest-explanation?utm_source=hashnode&utm_medium=feed)

In this post, I will show you the quickest way to get the total number of results that your query returned. When I was looking online, I could only find long-winded answers to this question, so here is my attempt at a simple and straight solution. ...

Oct 6, 2022 · 1 min read · javasper.hashnode.dev  
Read the article

-   [#nodejs](https://hashnode.com/tag/nodejs)
-   [#express](https://hashnode.com/tag/express)
-   [#mongodb](https://hashnode.com/tag/mongodb)
-   [#databases](https://hashnode.com/tag/databases)
-   [#tutorial](https://hashnode.com/tag/tutorial)

## Written by

[Eric](https://hashnode.com/@javasper)

@javasper · Toronto, Canada

  
[View profile](https://hashnode.com/@javasper)

Full-Stack Web Developer

I'm a full-stack web developer who loves building new projects and learning new things It might not show from my posts, but I'm also quite funny.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
