2016-05-04 11 views

答えて

0

このエンティティの種類のクエリを実行し、結果をカウントする必要があります。

var query = ds.createQuery('EntityKind'); 

ds.runQuery(query, function(err, entities, info){ 
    if(err) { // deal with error } 

    var total = entities.length; 

    // You should check if there are more result 
    // and maybe run the query again until there are no more result 

    if (info.moreResults !== gcloud.datastore.NO_MORE_RESULTS) { 
     // More result 
    } 

}); 
関連する問題