Skip to content

Commit 0c628e9

Browse files
committed
added deprecate message
1 parent c9cf89f commit 0c628e9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/db.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -658,6 +658,7 @@ var evaluate = function(self, code, parameters, options, callback) {
658658
* @param {object} [options=null] Optional settings.
659659
* @param {boolean} [options.nolock=false] Tell MongoDB not to block on the evaulation of the javascript.
660660
* @param {Db~resultCallback} [callback] The results callback
661+
* @deprecated Eval is deprecated on MongoDB 3.2 and forward
661662
* @return {Promise} returns Promise if no callback passed
662663
*/
663664
Db.prototype.eval = function(code, parameters, options, callback) {

0 commit comments

Comments
 (0)