خرید بک لینک

Vote count: 0

Is it possible to find only those documents in a collections with same value in two given fields?

{
    _id:    fewSFDewvfG20df 
    start:  10
    end:    10
}

As here start and end have the same value, this document would be selected.

I think about something like...

Collection.find({ start: { $eq: end } })

... which wouldn't work, as end has to be a value.

asked 3 mins ago

برچسب: نویسنده: استخدام کار تاريخ: سه شنبه 21 ارديبهشت 1395 ساعت: 20:00

صفحه بندی