This is the best explanation of how to use map reduce in mongo db. Another explanations use a lot of functions, where the own map function moves by itself on document by document
Marks are taken as string values that's why sum or avg operations concatenating those values instead of doing actual sum, so first they need to convert into int
Got a Question on this topic? Let us know in the comment section below 👇 and we'll have our experts answer it for you.
This is the best explanation of how to use map reduce in mongo db. Another explanations use a lot of functions, where the own map function moves by itself on document by document
Marks are taken as string values that's why sum or avg operations concatenating those values instead of doing actual sum, so first they need to convert into int
Greetings! Thank you for your kind words.
thanks for this video Don't know why the you-tube's not create the videos on unique topics every one is following bhed-chal
bro you are using marks as string thats why its not adding two strings
values are concatenate that's why answer is wrong
Bro you just used "Marks" instead of "marks" in the reduce function.
no tats not the reason, its because of the masks as string
Simply reading no explanation nothing waste of time