Joined January 2015
·

satyanarayana raju

vijayawada
·
·

upto this url correctly working .
//var params = '{"keywords": {"$in":["'+($scope.search.split(" "))+'"]}}
By adding &embedded={"author":1}' not working

How to remove following syntax error:
var params = '{"keywords": {"$in":["'+($scope.search.split(" "))+'"]}}&embedded={"author":1}'
Restangular.all('people/posts').getList({where :params}).then(function(data) {
$scope.results = data
});

then url showing following error :
SyntaxError
File "<unknown>", line 1
SyntaxError: can't assign to operator

I got my answer you are initiator for me tanks allot. My doubt is I have friends array with friends ids how can I include in above query. (["someid","someid"])

How to write query for where in cause in restangular for bellow url

http://127.0.0.1:8000/?where={"_id": {"$in": ["someid","someid"]}}

Achievements
1 Karma
0 Total ProTip Views