mingo
    Preparing search index...

    Function find

    • Finds documents in a collection that match the specified criteria.

      Type Parameters

      • T

        The type of the documents in the collection.

      Parameters

      • collection: Source

        The source collection to search.

      • criteria: AnyObject

        The query criteria to filter the documents.

      • Optionalprojection: AnyObject

        Optional. Specifies the fields to include or exclude in the returned documents.

      • Optionaloptions: Partial<Options>

        Optional. Additional options to customize the query behavior.

      Returns Cursor<T>

      A Cursor object that allows iteration over the matching documents.