This repository was archived by the owner on Jun 13, 2023. It is now read-only.

Description
First, thanks to the Parse team for making Parse open source and enhancing it constantly.
Environment:
- parse: 1.8.5
- parse-server: 2.2.11
- node: 4.4.5
Parse-server index.js:
...
var api = new ParseServer({
databaseURI: databaseUri || 'mongodb://localhost:27017/xxxx-dev',
cloud: process.env.CLOUD_CODE_MAIN || __dirname + '/cloud/main.js',
appId: process.env.APP_ID || 'xxxx',
masterKey: process.env.MASTER_KEY || 'xxx',
serverURL: process.env.SERVER_URL || 'http://localhost:1337/parse',
filesAdapter: new S3Adapter(xxxx),
liveQuery: {
classNames: ["Account", "GUEvent"]
}
});
...
ParseServer.createLiveQueryServer(httpServer);
iOS Client:
class viewController: UIViewController {
private var subscription: Subscription<GUEvent>!
override func viewDidLoad() {
super.viewDidLoad()
subscription = GUEvent.query()!.whereKey("account", equalTo: accountObject).subscribe()
subscription.handleEvent { query, event in
print("Handling Event")
}
}
}
Live Query does not work:
- When the objects in GUEvent are secured with an ACL but works when the objects are publicly readable & writable.
- When the
account is a pointer, I get *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Invalid type in JSON write'.
So far Live Query works:
- When the objects in GUEvent are publicly readable and writable.
- When the where statement does not contain a pointer.
Any help would be greatly appreciated.