Does the order of Mongo query criteria affect index usage?

  mongodb, question

1. a mongo collection creates index db.sites.ensureindex ({name: 1, domain: 1})
Does the order of query conditions affect the application of indexes?

Find ({“name”: “ly”, “domain”: “Baidu”}) and
Do db.sites.find ({“domain”: “Baidu”, “name”: “ly”}) all use indexes?

I remember mysql where’s conditional order has an impact on the index. I wonder if mongo has any

The order of the query criteria does not affect, and the index above will be used for both queries you cite. All that matters is the order in which the indexes are created.
{name: 1, domain: 1}And{domain: 1, name: 1}Is a different index