Filter
Overview of filter document
Last updated
Was this helpful?
Overview of filter document
Last updated
Was this helpful?
Filter document allows you to specify what records should be returned.
A format of a filter document is shown below. You provide a field, which is a field saved inside a database, and a value or selector.
An example is shown below. Here we have two fields which we know exists in database. This will filter all the records with a name John and age greater than 18.
To filter items inside an object, separate fields by a dot.
As CodeMash is using MongoDB database internally, the following resources explain more on how to use filter.