class_docstr: Checks for the existence of a document which matches the given query in MongoDB.
  
  .. code-block:: python
  
      mongo_sensor = MongoSensor(
          collection="coll",
          query={"key": "value"},
          mongo_conn_id="mongo_default",
          mongo_db="admin",
          task_id="mongo_sensor",
      )
  
  :param collection: Target MongoDB collection.
  :param query: The query to find the target document.
  :param mongo_conn_id: The :ref:`Mongo connection id <howto/connection:mongo>` to use
      when connecting to MongoDB.
  :param mongo_db: Target MongoDB name.
code: def __init__(
      self,
      *,
      collection: str,
      query: dict,
      mongo_conn_id: str = "mongo_default",
      mongo_db=None,
      **kwargs,
  ) -> None:
      super().__init__(**kwargs)
      self.mongo_conn_id = mongo_conn_id
      self.collection = collection
      self.query = query
      self.mongo_db = mongo_db
  
file_path: airflow/airflow/providers/mongo/sensors/mongo.py
imports: from __future__ import annotations
  from typing import TYPE_CHECKING, Sequence
  from airflow.providers.mongo.hooks.mongo import MongoHook
  from airflow.sensors.base import BaseSensorOperator
label_desc: Use image node_id 1 to create a new MongoSensor object from inherited base classes: BaseSensorOperator with example: obj = MongoSensor()