Skip to main content

πŸ‘ Empty Aggregation Pipeline

An empty aggregation​

This code is the equivalent of a SELECT * FROM AUTHORS. It returns a cursor with all documents in the authors collection:

Atlas UI showing an empty aggregation pipeline
  • Make sure Collections > authors is selected.
  • Open the Aggregation tab.
  • Select Text.
  • Notice the empty array in the editor denoting an empty aggregation pipeline:
[]

You're getting all documents in authors (although the Atlas UI is only showing a 10 documents sample)