@@ -198,6 +198,21 @@ public interface IMongoCollection<TDocument>
198198 /// <summary>
199199 /// Counts the number of documents in the collection.
200200 /// </summary>
201+ /// <remarks>
202+ /// Note: when migrating from Count to CountDocuments the following query operations must be replaced:
203+ ///
204+ /// <code>
205+ /// +-------------+--------------------------------+
206+ /// | Operator | Replacement |
207+ /// +=============+================================+
208+ /// | $where | $expr |
209+ /// +-------------+--------------------------------+
210+ /// | $near | $geoWithin with $center |
211+ /// +-------------+--------------------------------+
212+ /// | $nearSphere | $geoWithin with $centerSphere |
213+ /// +-------------+--------------------------------+
214+ /// </code>
215+ /// </remarks>
201216 /// <param name="filter">The filter.</param>
202217 /// <param name="options">The options.</param>
203218 /// <param name="cancellationToken">The cancellation token.</param>
@@ -209,6 +224,21 @@ public interface IMongoCollection<TDocument>
209224 /// <summary>
210225 /// Counts the number of documents in the collection.
211226 /// </summary>
227+ /// <remarks>
228+ /// Note: when migrating from Count to CountDocuments the following query operations must be replaced:
229+ ///
230+ /// <code>
231+ /// +-------------+--------------------------------+
232+ /// | Operator | Replacement |
233+ /// +=============+================================+
234+ /// | $where | $expr |
235+ /// +-------------+--------------------------------+
236+ /// | $near | $geoWithin with $center |
237+ /// +-------------+--------------------------------+
238+ /// | $nearSphere | $geoWithin with $centerSphere |
239+ /// +-------------+--------------------------------+
240+ /// </code>
241+ /// </remarks>
212242 /// <param name="session">The session.</param>
213243 /// <param name="filter">The filter.</param>
214244 /// <param name="options">The options.</param>
@@ -221,6 +251,21 @@ public interface IMongoCollection<TDocument>
221251 /// <summary>
222252 /// Counts the number of documents in the collection.
223253 /// </summary>
254+ /// <remarks>
255+ /// Note: when migrating from CountAsync to CountDocumentsAsync the following query operations must be replaced:
256+ ///
257+ /// <code>
258+ /// +-------------+--------------------------------+
259+ /// | Operator | Replacement |
260+ /// +=============+================================+
261+ /// | $where | $expr |
262+ /// +-------------+--------------------------------+
263+ /// | $near | $geoWithin with $center |
264+ /// +-------------+--------------------------------+
265+ /// | $nearSphere | $geoWithin with $centerSphere |
266+ /// +-------------+--------------------------------+
267+ /// </code>
268+ /// </remarks>
224269 /// <param name="filter">The filter.</param>
225270 /// <param name="options">The options.</param>
226271 /// <param name="cancellationToken">The cancellation token.</param>
@@ -232,6 +277,21 @@ public interface IMongoCollection<TDocument>
232277 /// <summary>
233278 /// Counts the number of documents in the collection.
234279 /// </summary>
280+ /// <remarks>
281+ /// Note: when migrating from CountAsync to CountDocumentsAsync the following query operations must be replaced:
282+ ///
283+ /// <code>
284+ /// +-------------+--------------------------------+
285+ /// | Operator | Replacement |
286+ /// +=============+================================+
287+ /// | $where | $expr |
288+ /// +-------------+--------------------------------+
289+ /// | $near | $geoWithin with $center |
290+ /// +-------------+--------------------------------+
291+ /// | $nearSphere | $geoWithin with $centerSphere |
292+ /// +-------------+--------------------------------+
293+ /// </code>
294+ /// </remarks>
235295 /// <param name="session">The session.</param>
236296 /// <param name="filter">The filter.</param>
237297 /// <param name="options">The options.</param>
0 commit comments