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

ACS query sel not working as expected

$
0
0

I couldn't find any proper example for what I found in the documentation:

"If you want to display a field from a nested object, then both the name of the nested object and field need to be specified."

So, it seems, if I'm querying for places and want to have the photo.urls.original url associated with the place, I need to write something like this:

ACS.Places.query({
        where: {
            //whatever the condition may be
            }
        }
        ,sel: JSON.stringify({"all": ["id", "name", "address", "city", "postal_code", "latitude", "longitude", "photo", "photo.urls", "photo.urls.original"]})
    } , function (e) {
//and so on
}
However, I just get the photo.id in the response.

What's the error in my code?


Viewing all articles
Browse latest Browse all 8068

Trending Articles



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