You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 13, 2023. It is now read-only.
I'm trying to subscribe to a query built from 3 subqueries... As follows:
let cancelledQuery = Sub_PFOrder.query()!.whereKey("cancelled", equalTo: true)
let collectedQuery = Sub_PFOrder.query()!.whereKey("collected", equalTo: true)
let expiredQuery = Sub_PFOrder.query()!.whereKey("expired", equalTo: true)
let specificOrdersQuery = PFQuery.orQuery(withSubqueries: [cancelledQuery, collectedQuery, expiredQuery])
specificOrdersQuery.fromLocalDatastore()
and then:
subscription = Client.shared.subscribe(specificOrdersQuery).handle(Event.updated) { _, message in
print(message)
}
Problem is, when I run the code I get an error: Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Invalid type in JSON write (PFQuery)'
Notes:
ParseLiveQuery is working if I sub to a normal PFQuery.