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
I'm still hosting Parse on parse.com, but I'm pointing to a mongo DB on mongoLab. I created a new Parse app and added a custom mongo URI so I can deal with the parse-server migration later but still have my database somewhere else.
I have a custom object called "Observation" that I'm querying with the iOS sdk. Here's the code:
let calendar = NSCalendar.currentCalendar()
let daysAgo = calendar.dateByAddingUnit(.Day, value: -date, toDate: NSDate(), options: [])
let query = PFQuery(className:"Observation")
.whereKey("location", nearGeoPoint: PFGeoPoint(latitude:location.latitude, longitude:location.longitude), withinKilometers: radius)
.whereKey("obsDate", greaterThan:daysAgo!)
.includeKey("birder")
When I remove the ".includeKey("birder")", the error goes away. So it seems to be a pointer problem. Yet when I look in the mongo DB, the pointer is set correctly in Observation:
I'm still hosting Parse on parse.com, but I'm pointing to a mongo DB on mongoLab. I created a new Parse app and added a custom mongo URI so I can deal with the parse-server migration later but still have my database somewhere else.
I have a custom object called "Observation" that I'm querying with the iOS sdk. Here's the code:
Here's the error I get:
When I remove the ".includeKey("birder")", the error goes away. So it seems to be a pointer problem. Yet when I look in the mongo DB, the pointer is set correctly in Observation:
And the referenced User exits (in _User collection):
Once again, I'm still using parse.com's server. The only difference is that I'm pointing to a custom mongoURI provided by mongoLab.
Any ideas? Thanks!
The text was updated successfully, but these errors were encountered: