mingo
    Preparing search index...

    Function find

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

      Type Parameters

      Parameters

      • collection: Source

        The source collection to search.

      • condition: Criteria<T>

        The query criteria to filter the documents.

      • Optionalprojection: Projection<R>

        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<R>

      A Cursor object that allows iteration over the matching documents.