Database: Count documents in a MongoDB collection

Count documents in a MongoDB collection matching a filter.

Help Centre › Building Processes

Count documents in a MongoDB collection matching a filter.

Add it to a process

In the process designer, open the Add step tab. Find Count documents in a MongoDB collection under Database, or type its name in the search box, and drag it onto the canvas.

Fields

FieldRequiredWhat it does
CollectionYesCollection name
FilterNoQuery filter (counts all if omitted)
VariableNoName of the variable where the result will be stored Default: count.

What it gives back

  • {count} – Number of matching documents

See all Database steps.

See it working on your own data

Everything documented here ships with the platform – try the document tools free, or go live in 7 days.