@@ -159,9 +159,14 @@ def __init__(
159159 - `session` (optional): a
160160 :class:`~pymongo.client_session.ClientSession` that is used with
161161 the create collection command
162+ - `encrypted_fields`: **(BETA)** Document that describes the encrypted fields for
163+ Queryable Encryption. If provided it will be passed to the create collection command.
162164 - `**kwargs` (optional): additional keyword arguments will
163165 be passed as options for the create collection command
164166
167+ .. versionchanged:: 4.2
168+ Added ``encrypted_fields`` parameter.
169+
165170 .. versionchanged:: 4.0
166171 Removed the reindex, map_reduce, inline_map_reduce,
167172 parallel_scan, initialize_unordered_bulk_op,
@@ -1156,6 +1161,7 @@ def drop(
11561161 self ,
11571162 session : Optional ["ClientSession" ] = None ,
11581163 comment : Optional [Any ] = None ,
1164+ encrypted_fields : Optional [Mapping [str , Any ]] = None ,
11591165 ) -> None :
11601166 """Alias for :meth:`~pymongo.database.Database.drop_collection`.
11611167
@@ -1164,12 +1170,17 @@ def drop(
11641170 :class:`~pymongo.client_session.ClientSession`.
11651171 - `comment` (optional): A user-provided comment to attach to this
11661172 command.
1173+ - `encrypted_fields`: **(BETA)** Document that describes the encrypted fields for
1174+ Queryable Encryption.
11671175
11681176 The following two calls are equivalent:
11691177
11701178 >>> db.foo.drop()
11711179 >>> db.drop_collection("foo")
11721180
1181+ .. versionchanged:: 4.2
1182+ Added ``encrypted_fields`` parameter.
1183+
11731184 .. versionchanged:: 4.1
11741185 Added ``comment`` parameter.
11751186
@@ -1186,7 +1197,9 @@ def drop(
11861197 self .write_concern ,
11871198 self .read_concern ,
11881199 )
1189- dbo .drop_collection (self .__name , session = session , comment = comment )
1200+ dbo .drop_collection (
1201+ self .__name , session = session , comment = comment , encrypted_fields = encrypted_fields
1202+ )
11901203
11911204 def _delete (
11921205 self ,
0 commit comments