Skip to content

Live query subscription not working with constraint $in #8335

Closed
@theFreedomBanana

Description

@theFreedomBanana

New Issue Checklist

Issue Description

It seems that subscribing to a live query with the constraint $in (containsAll and containedIn wirth the JS SDK) doesn't work, at least when the key's value is of type Array.

Steps to reproduce

Subscribe to a query with a containedIn constraint, where the key to constrain as a value of type Array.

Actual Outcome

The subscription works but when an object is deleted/created/updated it doesn't return it.

Expected Outcome

I expect Parse to return any created/deleted/updated object falling into the boudaries of the subscribed query.

Environment

Server

  • Parse Server version: 5.4.0
  • Operating system: Linux
  • Local or remote host (AWS, Azure, Google Cloud, Heroku, Digital Ocean, etc): Local

Database

  • System (MongoDB or Postgres): MongoDB
  • Database version: 4.12.0
  • Local or remote host (MongoDB Atlas, mLab, AWS, Azure, Google Cloud, etc): AWS

Client

  • SDK (iOS, Android, JavaScript, PHP, Unity, etc): Javascript
  • SDK version: 3.4.2

Logs

Metadata

Metadata

Assignees

No one assigned

    Labels

    type:bugImpaired feature or lacking behavior that is likely assumed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions