class_docstr: Interact with Mongo. This hook uses the Mongo conn_id.
  
  PyMongo Wrapper to Interact With Mongo Database
  Mongo Connection Documentation
  https://docs.mongodb.com/manual/reference/connection-string/index.html
  You can specify connection string options in extra field of your connection
  https://docs.mongodb.com/manual/reference/connection-string/index.html#connection-string-options
  
  If you want use DNS seedlist, set `srv` to True.
  
  ex.
      {"srv": true, "replicaSet": "test", "ssl": true, "connectTimeoutMS": 30000}
  
  :param mongo_conn_id: The :ref:`Mongo connection id <howto/connection:mongo>` to use
      when connecting to MongoDB.
class_docstr_tok: ["Interact","with","Mongo",".","This","hook","uses","the","Mongo","conn_id",".","PyMongo","Wrapper","to","Interact","With","Mongo","Database","Mongo","Connection","Documentation","https",":","\/\/docs.mongodb.com\/manual\/reference\/connection-string\/index.html","You","can","specify","connection","string","options","in","extra","field","of","your","connection","https",":","\/\/docs.mongodb.com\/manual\/reference\/connection-string\/index.html","#","connection-string-options","If","you","want","use","DNS","seedlist",",","set","`","srv","`","to","True",".","ex",".","{","``","srv","''",":","true",",","``","replicaSet","''",":","``","test","''",",","``","ssl","''",":","true",",","``","connectTimeoutMS","''",":","30000","}",":","param","mongo_conn_id",":","The",":","ref",":","`","Mongo","connection","id","<","howto\/connection",":","mongo",">","`","to","use","when","connecting","to","MongoDB","."]
code: def __init__(
      self, conn_id: str = default_conn_name, *args, **kwargs
  ) -> None:
      super().__init__(logger_name=kwargs.pop("logger_name", None))
      self.mongo_conn_id = conn_id
      self.connection = self.get_connection(conn_id)
      self.extras = self.connection.extra_dejson.copy()
      self.client: MongoClient | None = None
      self.uri = self._create_uri()
  
imports: from __future__ import annotations
  from ssl import CERT_NONE
  from typing import TYPE_CHECKING, Any, overload
  from urllib.parse import quote_plus, urlunsplit
  import pymongo
  from pymongo import MongoClient, ReplaceOne
  from airflow.hooks.base import BaseHook
label_desc: Use image node_id 1 to create a new MongoHook object from inherited base classes: BaseHook with example: obj = MongoHook(conn_id)