tried to get the value based on GPSPointType id ,it's not working
var filterQuery =
{
'query': 'select top 1 c2.PremiseType from c c2 where c2.GPSPointType=@id',
'parameters': [{ 'name': '@id', 'value': 2 }]
};
//var filterQuery = 'SELECT * FROM p where p.GPSPointType=2';
var accepted = collection.queryDocuments(collectionLink, filterQuery, {}, function (err, itemCreated) {
if (err) console.log(err.message);
//if (itemCreated.length > 0) {
getContext().getResponse().setBody(JSON.stringify(itemCreated)); return true;
//return itemCreated[0].PremiseType;
//}
});