2016-09-16 69 views
0

如果我想要指定用戶的用戶列表,那麼我可以使用它。Microsoft Azure移動服務中的查詢對象

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

但是我想要做的是,我想獲取創建日期大於今天日期的所有用戶數據。 var todayDate = new Date(); 如何使用查詢對象在這裏使用相似的代碼。

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 
}}); 

終於找到了。 :)