Mongoose query wildcard

ساخت وبلاگ
چکیده : I have this collection in the db: const events = [{ "_id": { "$oid": "5c0d069b3834614c6... با عنوان : Mongoose query wildcard بخوانید :

I have this collection in the db:

const events = 
[{
    "_id": {
        "$oid": "5c0d069b3834614c67708a64"
    },
    "attendants": {
        "seekers": [],
        "employers": [
            {
                "id": {
                    "$oid": "5c0cda7a7c1604102d9c6648"
                },
                "boothVisits": []
            }
        ]
    },
    "isFinished": false,
}, ... more events]

I want to select the events where the attendants.employers.'wildcard'.id.equals(user._id). Now how do I use a wildcard? I cannot find any information about it. If there is any other way of doing it I'm also all for it.

back soft...
ما را در سایت back soft دنبال می کنید

نویسنده : استخدام کار بازدید : 5 تاريخ : دوشنبه 19 آذر 1397 ساعت: 20:06