Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial
jean-marie castellucci
4,954 PointsChaining constraint with parse PFQuery
Have a problem chaining constraint with parse PFQuery. When i put the whereKey for location, the orderByAscending is working but i can't get all the photos posted 50 km around :
var findPosts:PFQuery = PFQuery(className: "UserPost")
findPosts.whereKey("location", nearGeoPoint: location, withinKilometers: 50)
findPosts.orderByDescending("createdAt")
findPosts.limit = 10
findPosts.skip = timeLineData.count