Timeline for MongoDB aggregate with total count as variable
Current License: CC BY-SA 4.0
6 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Nov 1, 2019 at 9:16 | answer | added | SuleymanSah | timeline score: 1 | |
| Nov 1, 2019 at 8:35 | comment | added | prasad_ |
You cannot use variables for the aggregation $limit stage; it has to be an integer literal (e.g., 5 ).
|
|
| Nov 1, 2019 at 7:30 | comment | added | Sanjay | @sushantmehta can you provide an example? I am unable to set total count as a variable at first place .. | |
| Nov 1, 2019 at 7:27 | comment | added | sushant mehta | use $multiply operator docs.mongodb.com/manual/reference/operator/aggregation/multiply | |
| Nov 1, 2019 at 7:20 | history | edited | Sanjay | CC BY-SA 4.0 |
deleted 3 characters in body
|
| Nov 1, 2019 at 7:14 | history | asked | Sanjay | CC BY-SA 4.0 |