Skip to content

DOCS-1512 fix eval params/fields #1008

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions source/reference/command/eval-param.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ object:
field:
optional: false
type: field
name: function
name: eval
type: function
position: 1
description: A JavaScript function.
Expand All @@ -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.
---
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion source/reference/command/eval.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
6 changes: 3 additions & 3 deletions source/reference/method/db.eval-param.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
2 changes: 1 addition & 1 deletion source/reference/method/db.eval.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down