var City = ncmb.DataStore("City");
var Team = ncmb.DataStore("Team");
var bigCity = City.greaterThan("population", 10000).limit(200);
Team.select("city", "cityname", bigCity)
.fetchAll()
.then(function(results){
console.log('Count: ' + results.length);
for (var i = 0; i < results.length; i++) {
var object = results[i];
console.log (object.city);
}
})
.catch(function(err){
console.log(err);
});
※Total 250 Team, 250 city (all city have population > 10000). One Team mapping with one City. The result is 200 record.
概要(Summary)
動作確認手順(Step for Confirmation)
Confirm for inQuery:
※followの全件数情報(249件) - user固定同じ値全件数(5件) = 実施follow 検索ユーザー件数 (244件)
Confirm for select:
※Total 250 Team, 250 city (all city have population > 10000). One Team mapping with one City. The result is 200 record.
Run the unit test.