Skip to content

Ability to query nested documents/objects/arrays  #953

Closed
@faridnsh

Description

@faridnsh

For example right now there doesn't seem to be an easy way to have equivalent of this mongodb query with loopback where filters:

{
    people : {
        $elemMatch : {
            id : ObjectId('546047f6118d30f014000001'),
            tags : { $in : ['alive'], $ne : 'rich' }
        }
    }
}

Do note that poeple is an array of objects that contains, tags which is an array of strings.

Note that this has been asked before on mailing list and on stackoverflow.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions