nailo2c commented on code in PR #50518:
URL: https://github.com/apache/airflow/pull/50518#discussion_r2096121873


##########
providers/mongo/src/airflow/providers/mongo/hooks/mongo.py:
##########
@@ -225,6 +225,39 @@ def get_collection(self, mongo_collection: str, mongo_db: 
str | None = None) ->
 
         return 
mongo_conn.get_database(mongo_db).get_collection(mongo_collection)
 
+    def create_collection(
+        self,
+        mongo_collection: str,
+        mongo_db: str | None = None,
+        create_if_exists: bool = True,

Review Comment:
   good suggestion, it makes more sense



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to