2016-09-16 5 views
0

指定したユーザーのユーザーリストが必要な場合は、これを使用できます。Microsoft Azureモバイルサービスのクエリオブジェクト

tblTest.where({ userId: user.userId}) 
     .read({ success: function(results) { 
      console.log("results",results 
    }}); 

私がしたいことは、作成日が今日の日付よりも大きいすべてのユーザーデータを取得することです。 var todayDate = new Date(); ここでは、クエリオブジェクトを使用してsimilaryコードを使用できます。

select * from tblTest where startDate <= todayDate 

tblTest.where({ startDate <= user.userId}) 

//

答えて

0
tblTest.where(function(){ 
    return startDate <= todayDate; 
}) 
.read({ success: function(results) { 
    console.log("results",results 
}}); 

は最後にそれを発見し、このdoesntの仕事。 :)

関連する問題