Wednesday, 19 February 2020

mongo find and distinct

you don't have to do distinct after find. you can do that with single distinct query:

db.collection_name.distinct(field,query,options)

field -----指定要返回的字段(string)
query-----条件查询(document)
options-----其他的选项(document)

1 comment:

  1. You should see how my associate Wesley Virgin's autobiography starts in this shocking and controversial VIDEO.

    As a matter of fact, Wesley was in the army-and shortly after leaving-he found hidden, "mind control" tactics that the government and others used to get everything they want.

    As it turns out, these are the exact same SECRETS lots of famous people (especially those who "became famous out of nothing") and elite business people used to become rich and famous.

    You probably know that you utilize only 10% of your brain.

    That's really because most of your BRAINPOWER is UNCONSCIOUS.

    Perhaps this conversation has even taken place IN YOUR own head... as it did in my good friend Wesley Virgin's head about 7 years back, while driving an unregistered, trash bucket of a car without a license and with $3.20 on his debit card.

    "I'm so fed up with living paycheck to paycheck! Why can't I turn myself successful?"

    You took part in those conversations, ain't it right?

    Your very own success story is waiting to start. You just have to take a leap of faith in YOURSELF.

    WATCH WESLEY SPEAK NOW

    ReplyDelete