Skip to content

PFQuery issue with NSpredicate  #1330

Closed
@topslave

Description

@topslave

Hi,
I am building a chat application using Livequery, the chat works well with

      let predicate = NSPredicate(format:"itemID = '\(itemId1)' OR itemID = '\(itemId2)'")
        query = Message.query(with: predicate)?.order(byAscending: "createdAt")
       let query = PFQuery(className: MY_CLASS_NAME, predicate: predicate)

this works well if I don't use live queries and pull with time interval.
Livequery also works if I don't add predicate.
Below is the error I get
Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Invalid type in JSON write (PFQuery)'

any ideas ?
Thanks

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