{"action":"created","issue":{"url":"https://api.github.com/repos/parse-community/Parse-SDK-iOS-OSX/issues/935","repository_url":"https://api.github.com/repos/parse-community/Parse-SDK-iOS-OSX","labels_url":"https://api.github.com/repos/parse-community/Parse-SDK-iOS-OSX/issues/935/labels{/name}","comments_url":"https://api.github.com/repos/parse-community/Parse-SDK-iOS-OSX/issues/935/comments","events_url":"https://api.github.com/repos/parse-community/Parse-SDK-iOS-OSX/issues/935/events","html_url":"https://github.com/parse-community/Parse-SDK-iOS-OSX/issues/935","id":159746332,"node_id":"MDU6SXNzdWUxNTk3NDYzMzI=","number":935,"title":"LiveQuery returns object which is not readable in iOS","user":{"login":"tsanthosh","id":7176581,"node_id":"MDQ6VXNlcjcxNzY1ODE=","avatar_url":"https://avatars2.githubusercontent.com/u/7176581?v=4","gravatar_id":"","url":"https://api.github.com/users/tsanthosh","html_url":"https://github.com/tsanthosh","followers_url":"https://api.github.com/users/tsanthosh/followers","following_url":"https://api.github.com/users/tsanthosh/following{/other_user}","gists_url":"https://api.github.com/users/tsanthosh/gists{/gist_id}","starred_url":"https://api.github.com/users/tsanthosh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tsanthosh/subscriptions","organizations_url":"https://api.github.com/users/tsanthosh/orgs","repos_url":"https://api.github.com/users/tsanthosh/repos","events_url":"https://api.github.com/users/tsanthosh/events{/privacy}","received_events_url":"https://api.github.com/users/tsanthosh/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-06-11T00:33:38Z","updated_at":"2018-09-19T13:35:06Z","closed_at":null,"author_association":"NONE","body":"### Issue Description\n\nAfter subscribing to `Event.Updated`, I receive the following object when I update the object via Parse dashboard.\n#### Expected Results\n\n```\n<Attendee: 0x7f8afce40440, objectId: ptnVOC4tKE, localId: (null)> {\n    ACL = \"<PFACL: 0x7f8afcebd670>\";\n    attendeeId = 585857109;\n    barcode = 463895634585857109001;\n    checkedIn = 0;\n    customFields =     (\n        \"<CustomField: 0x7f8afa529840, objectId: 8Eri3BCtnf, localId: (null)>\",\n        \"<CustomField: 0x7f8afa52aea0, objectId: rX21uQozak, localId: (null)>\"\n    );\n    event = \"<GUEvent: 0x7f8afa6a6720, objectId: Xsjhm2GrSZ, localId: (null)>\";\n    firstName = xxxxx;\n    lastName = xxx;\n}\n```\n#### Actual Outcome\n\n```\n<Attendee: 0x7f8afa6add50, objectId: sBA6bA6iwo, localId: (null)> {\n    ACL =     {\n        w6Pc41N1jN =         {\n            read = 1;\n            write = 1;\n        };\n    };\n    \"__type\" = Object;\n    attendeeId = 585857110;\n    barcode = 463895634585857110001;\n    checkedIn = 1;\n    className = Attendee;\n    createdAt = \"2016-06-08T04:09:09.243Z\";\n    customFields =     (\n                {\n            \"__type\" = Pointer;\n            className = CustomField;\n            objectId = u62YrQ1QQL;\n        },\n                {\n            \"__type\" = Pointer;\n            className = CustomField;\n            objectId = IXHYy0EQQn;\n        }\n    );\n    event =     {\n        \"__type\" = Pointer;\n        className = GUEvent;\n        objectId = Xsjhm2GrSZ;\n    };\n    firstName = xxxx;\n    lastName = xxxx;\n    updatedAt = \"2016-06-08T09:06:06.709Z\";\n}\n```\n### Steps to reproduce\n\nParse-server `index.js`:\n\n```\n...\nvar api = new ParseServer({\n  databaseURI: databaseUri || 'mongodb://localhost:27017/xxxx-dev',\n  cloud: process.env.CLOUD_CODE_MAIN || __dirname + '/cloud/main.js',\n  appId: process.env.APP_ID || 'xxxx',\n  masterKey: process.env.MASTER_KEY || 'xxx',\n  serverURL: process.env.SERVER_URL || 'http://localhost:1337/parse',\n  filesAdapter: new S3Adapter(xxxx),\n  liveQuery: {\n    classNames: [\"Attendee\", \"CustomFields\", \"GUEvent\"]\n  }\n});\n...\nParseServer.createLiveQueryServer(httpServer);\n```\n\niOS Client:\n\n```\nclass viewController: UIViewController {\n    private var subscription: Subscription<Attendee>!\n\n    override func viewDidLoad() {\n        super.viewDidLoad()\n\n        subscription = Attendee.query()!.whereKey(\"event\", equalTo: selectedEvent).subscribe()\n        subscription.handle(Event.Updated) { (query: PFQuery, object: PFObject) in\n            if let attendee = object as? Attendee {\n                print(attendee)\n            }\n        }\n    }\n}\n```\n### Environment Setup\n\nEnvironment:\n- parse: 1.8.5\n- parse-server: 2.2.11\n- node: 4.4.5\n- **Server**\n  - parse-server version: 2.2.11\n  - Operating System:     OS X El Capitan\n  - Hardware:             MacBook Air\n  - Localhost or remote server? Localhost\n- **Database**\n  - MongoDB version: 3.0.11\n  - Storage engine:  mmapV1\n  - Hardware:        MacBook Air\n  - Localhost or remote server? Localhost\n### Logs/Trace\n\nOutput when I updated an object in the Parse dashboard\n\n```\nverbose: PUT /parse/classes/Attendee/MMfwASCFJc { host: 'localhost:1337',\n  connection: 'keep-alive',\n  'content-length': '236',\n  origin: 'http://localhost:4040',\n  'user-agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.63 Safari/537.36',\n  'content-type': 'text/plain',\n  accept: '*/*',\n  referer: 'http://localhost:4040/apps/Guesto-Local/browser/Attendee',\n  'accept-encoding': 'gzip, deflate',\n  'accept-language': 'en-US,en;q=0.8' } {\n  \"checkedIn\": false\n}\nverbose: {\n  \"response\": {\n    \"updatedAt\": \"2016-06-10T06:25:27.660Z\"\n  }\n}\n```\n\nNo other output specific to live query.\n"},"comment":{"url":"https://api.github.com/repos/parse-community/Parse-SDK-iOS-OSX/issues/comments/422805700","html_url":"https://github.com/parse-community/Parse-SDK-iOS-OSX/issues/935#issuecomment-422805700","issue_url":"https://api.github.com/repos/parse-community/Parse-SDK-iOS-OSX/issues/935","id":422805700,"node_id":"MDEyOklzc3VlQ29tbWVudDQyMjgwNTcwMA==","user":{"login":"stale[bot]","id":26384082,"node_id":"MDM6Qm90MjYzODQwODI=","avatar_url":"https://avatars3.githubusercontent.com/in/1724?v=4","gravatar_id":"","url":"https://api.github.com/users/stale%5Bbot%5D","html_url":"https://github.com/apps/stale","followers_url":"https://api.github.com/users/stale%5Bbot%5D/followers","following_url":"https://api.github.com/users/stale%5Bbot%5D/following{/other_user}","gists_url":"https://api.github.com/users/stale%5Bbot%5D/gists{/gist_id}","starred_url":"https://api.github.com/users/stale%5Bbot%5D/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stale%5Bbot%5D/subscriptions","organizations_url":"https://api.github.com/users/stale%5Bbot%5D/orgs","repos_url":"https://api.github.com/users/stale%5Bbot%5D/repos","events_url":"https://api.github.com/users/stale%5Bbot%5D/events{/privacy}","received_events_url":"https://api.github.com/users/stale%5Bbot%5D/received_events","type":"Bot","site_admin":false},"created_at":"2018-09-19T13:35:06Z","updated_at":"2018-09-19T13:35:06Z","author_association":"NONE","body":"This issue has been automatically marked as stale because it has not had recent activity. If you believe it should stay open, please let us know! As always, we encourage contributions, check out the [Contributing Guide](https://github.com/parse-community/Parse-SDK-iOS-OSX/blob/master/CONTRIBUTING.md)\n"}}
{"actor":{"display_login":"stale"}}