Skip to content

Reason behind saving an array backward #32

@quangld

Description

@quangld

I'm just curious what is the reason behind saving an array backward

var articles = [article1, article2, article3]
db.articles.save(articles);
articles = db.articles.find({})

the order of articles returned will be [article3, article2, article1]

I was expected to be the same order when I get them as the same when I saved them.
Thank

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions