I have a MongoDB with Mongoose ODM. I downloaded the backup of the database and wanted to pull the query from the one of the collections and store it in the separate collection.
Here is the example of the data:
{
id: 01;
name: a;
coordinates:{
x;
y;
};
};
{
id: 02;
name: b;
coordinates:{
x;
y;
};
}
But once I make a query to save it in new collection some of the documents have the coordinates changed vise-versa. Is there any way to prevent it and query results in the specific order?