About 10,200,000 results
Open links in new tab
  1. $out (aggregation) - Database Manual v8.0 - MongoDB Docs

    Takes the documents returned by the aggregation pipeline and writes them to a specified collection. You can specify the output database. The $out stage must be the last stage in the …

  2. mongodb - Mongo aggregation and separating sub-objects into separate

    What I'm looking to do is separate each profile.(low|medium|high).(mp3|oga|m4a) into a separate document/item for aggregation, so for example:

  3. $split (aggregation) - Database Manual v8.0 - MongoDB Docs

    Divides a string into an array of substrings based on a delimiter. $split removes the delimiter and returns the resulting substrings as elements of an array. If the delimiter is not found in the …

  4. Adding a separate document in an aggregation output for sum …

    Oct 26, 2020 · You can use $facet, to separate both in different fields, result: [] will get all documents from root; total to create separate array with one object of total, $group to sum …

  5. MongoDB Aggregation $out - GeeksforGeeks

    Feb 4, 2025 · In MongoDB Aggregation, $out is an aggregation pipeline stage that allows us to save the results of an aggregation operation to a specified collection. It writes the output of the …

  6. mongodb - Split document into two documents based on two …

    Jan 24, 2020 · In 3 steps: Create array with 2 items + $unwind + $replaceRoot or $replaceWith. $project: { data: [ name: "$name", datetime_created: "$datetime_created" }, name: "$name", …

  7. In MongoDB, you can use the resulting dataset of a $unwind operation—unwound values—to further transform the data set. The “vehiclesalesmain” collection is used to demonstrate how to …

  8. Working with Arrays in the Aggregation Pipeline | Studio 3T

    The operator also sorts the output data in descending order, based on the document counts. You can think of the $sortByCount operator as a shortcut to creating a $group stage and a $sort …

  9. MongoDB $split - Database.Guide

    Mar 16, 2021 · In MongoDB, the $split aggregation pipeline operator divides a string into an array of substrings based on a delimiter. The delimiter is removed from the string, and the substrings …

  10. Extract Values and Display in a Single Line with MongoDB

    Apr 2, 2020 · "Name":[ ... "Bob", ... "Mike" ... }, ... "Name":[ ... "Carol", ... "Sam" ... }, ... "Name":[ ... "David", ... "John" ... ); "acknowledged" : true, "insertedId" : …

  11. Some results have been removed