How to find a query that is use deprecated option? Mongodb writes logs


  2018-04-05T11:38:28.178+0000 W COMMAND  [conn107] Use of the aggregate
  command without the 'cursor' option is deprecated. See
  http://dochub.mongodb.org/core/aggregate-without-cursor-deprecation.


How to find related query?
You need go thru your source code! Search all aggregate commands and add needed ,{cursor:{}} section. Check here!