Quantcast
Channel: Appcelerator Developer Center Q&A Unanswered Questions 20
Viewing all articles
Browse latest Browse all 8068

How do I retrieve Cloud.users photo urls without multiple queries?

$
0
0

I am querying nearby users to populate a tableview of rows with an imageview and text in each but rather than getting a url to each user's photo I am getting the photo_id

Cloud.Users.query({
    page: 1,
    per_page: 100,
    where: { 
        "coordinates" : {
             "$nearSphere":[longitude,latitude], 
             "$maxDistance" : 1.0 
        }
    } 
}...
I see in the ArrowDB that the user's uploaded images have been saved to Photos. Are we expected to query Cloud.photos after receiving the photo_ids or am I missing the URL somewhere?

if we are expected to repeatedly query the DB, is there a way to query multiple ids and return URL/id pairs so as to match the URLs back to the Users data?


Viewing all articles
Browse latest Browse all 8068

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>