Details
-
Bug
-
Resolution: Done
-
Minor - P4
-
None
-
*Location*: https://docs.mongodb.org/manual/tutorial/store-javascript-function-on-server/
*User-Agent*: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:41.0) Gecko/20100101 Firefox/41.0
*Referrer*: https://www.google.rs
*Screen Resolution*: 1920 x 1080
*repo*: docs
*source*: tutorial/store-javascript-function-on-server
*Location*: https://docs.mongodb.org/manual/tutorial/store-javascript-function-on-server/ *User-Agent*: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:41.0) Gecko/20100101 Firefox/41.0 *Referrer*: https://www.google.rs *Screen Resolution*: 1920 x 1080 *repo*: docs *source*: tutorial/store-javascript-function-on-server
-
0.2
Description
When I call a function, where is execution of that function?
For example:
I have the database on the one computer, server is on the other, i have api call to server from third, and when I call second computer on this way:
myFunction(db.person.find(
{ name: 'Mike' }))
I must get first object and then to call again database to execute function or what?
I want to select some data from that object(argument) and I want call only one time database, can I do that ?
Can I write function to do select exactly from the place where is database and get data ? Simply, only one call and processing(filtering) in the level of database by my embedded function!
Attachments
Issue Links
- is depended on by
-
DOCS-6585 Comment on: "manual/tutorial/store-javascript-function-on-server.txt"
-
- Closed
-