diff --git a/source/reference/command/eval-param.yaml b/source/reference/command/eval-param.yaml index 5ca3c7443ff..db2ad6a3a77 100644 --- a/source/reference/command/eval-param.yaml +++ b/source/reference/command/eval-param.yaml @@ -4,7 +4,7 @@ object: field: optional: false type: field -name: function +name: eval type: function position: 1 description: A JavaScript function. @@ -15,8 +15,8 @@ object: field: optional: true type: field -name: arguments -type: list +name: args +type: array position: 2 description: An array of arguments to pass to the JavaScript function. Omit if the function does not take arguments. --- @@ -27,7 +27,7 @@ field: optional: true type: field name: nolock -type: list +type: boolean position: 3 description: | By default, :dbcommand:`eval` takes a global write lock before diff --git a/source/reference/command/eval.txt b/source/reference/command/eval.txt index 50e42f8be2f..c656ed259e6 100644 --- a/source/reference/command/eval.txt +++ b/source/reference/command/eval.txt @@ -3,7 +3,7 @@ eval ==== .. Edits to this page should be carried over to the method db.eval.txt - file. + file. HOWEVER, the parameters are different between the command and method. .. default-domain:: mongodb diff --git a/source/reference/method/db.eval-param.yaml b/source/reference/method/db.eval-param.yaml index 9486a9cd3f4..460c3fc14e7 100644 --- a/source/reference/method/db.eval-param.yaml +++ b/source/reference/method/db.eval-param.yaml @@ -4,10 +4,10 @@ object: field: optional: false type: param -name: JavaScript -type: function +name: function +type: JavaScript function position: 1 -description: A JavaScript function. +description: A JavaScript function to execute. --- object: name: db.eval() diff --git a/source/reference/method/db.eval.txt b/source/reference/method/db.eval.txt index 2b446901b8d..0b645568f75 100644 --- a/source/reference/method/db.eval.txt +++ b/source/reference/method/db.eval.txt @@ -3,7 +3,7 @@ db.eval() ========= .. Edits to this page should be carried over to the command eval.txt - file. + file. HOWEVER, the parameters are different between command and method. .. default-domain:: mongodb