【发布时间】:2016-06-16 05:39:24
【问题描述】:
我按照教程在 Azure 上编写了一个脚本,用于自定义 SQL 以检索一些数据: https://www.tapanila.net/windows-azure-mobile-services-custom-api-for-existing-sql-database/
我正在开发一项移动服务,并在 Azure 上使用“Easy API”。
我在编写这个脚本时遇到错误:
exports.get = function(request, response) {
request.service.mssql.query(
'select * from varegrupper', {
success: function(results) {
response.send(200, results);
}
});
};
这是我的错误:
{"error":"Cannot read property 'mssql' of undefined"}
知道我错过了什么吗?
【问题讨论】:
标签: javascript node.js api azure azure-mobile-services