[AC-1281] ACS query sel not working
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2014-06-26T09:35:56.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | n/a |
Labels | n/a |
Reporter | Thomas Reinberger |
Assignee | Shuo Liang |
Created | 2014-06-25T16:54:27.000+0000 |
Updated | 2016-03-08T07:37:40.000+0000 |
Description
when I run the query
ACS.Events.query({
sel : JSON.stringify({
"all" : ["id", "name", "start_time", "place.name", "place.latitude", "place.longitude", "place", "user", "user.id", "user.username", "participant_0", "participant_1", "participant_2", "participant_3", "participants"]
}),
....
I receive place.id and place.name amongst other attributes, but no place.latitude, place.longitude. Same for user.username.
the "sel"-attribute seems to be entirely ignored.
Full source code can be found here:
https://github.com/treinberger/mixnmatch-server
controllers
event.js
Hi, Based on your code, the right code should be
Please read the document about query sel option. http://docs.appcelerator.com/cloud/latest/#!/guide/search_query
Thank you. I read the documentation but misinterpreted it. Closed.