Skip to content

containedIn on an array type key #4762

Closed
@jeremypiednoel

Description

@jeremypiednoel

Hi Guys !

Issue Description

I'm trying to use containedIn on an array key :

const array = [1 ,2 ,3];
query.containedIn('arrayKey', array);

My key arrayKey is an array in the DB : for instance [1, 3];
My issue is the query will return objects where at least one item from array is in arrayKey and not all of them.
I'm not sure if it's the normal behavior.
If it is do you guys know a workaround ? because containsAll won't work either.
Thanks for the reading.

Steps to reproduce

Make a containedIn query on array key.

Environment Setup

  • Server
    • parse-server version : 2.7.4
    • Operating System: macOS 10.12.6 (Sierra)
    • Hardware: iMac (Retina 5K, 27-inch, Late 2015)
    • Localhost or remote server? Localhost

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions