anon
Posts: 0
Joined: Sun Apr 13, 2014 12:10 am

Manual service invocation with multiple request parameters

How do I correctly execute a service in JavaScript using data with more than one parameter? For example:

myService.execute({ "data" : [{"where": {"_id": myID}, {"limit":listData.limit}, {"skip":listData.skip}]});

This doesn't seem to work, as I am not sure how to format this data name value pair

anon
Posts: 0
Joined: Sun Apr 13, 2014 12:10 am

Manual service invocation with multiple request parameters

Ah, turns out I got it.

myService.execute({ "data" : {"where": JSONquery, "limit": listData.limit, "skip": listData.skip} });

just make sure if your where value consists of many filters, that it is both well formed, and passed in as a JSON object.

Return to “Issues”