I have followed a tutorial to write a script on Azure for a custom SQL to retrieve some data: https://www.tapanila.net/windows-azure-mobile-services-custom-api-for-existing-sql-database/
Im working on a mobile service, and use "Easy API" on Azure.
I get an error when I write this script:
exports.get = function(request, response) {
request.service.mssql.query(
'select * from varegrupper', {
success: function(results) {
response.send(200, results);
}
});
};
This is my error:
{"error":"Cannot read property 'mssql' of undefined"}
Any idea what I have missed?