{"action":"closed","issue":{"url":"https://api.github.com/repos/NIFTYCloud-mbaas/UserCommunity/issues/486","repository_url":"https://api.github.com/repos/NIFTYCloud-mbaas/UserCommunity","labels_url":"https://api.github.com/repos/NIFTYCloud-mbaas/UserCommunity/issues/486/labels{/name}","comments_url":"https://api.github.com/repos/NIFTYCloud-mbaas/UserCommunity/issues/486/comments","events_url":"https://api.github.com/repos/NIFTYCloud-mbaas/UserCommunity/issues/486/events","html_url":"https://github.com/NIFTYCloud-mbaas/UserCommunity/issues/486","id":164673604,"number":486,"title":"チュートリアル（早起きアプリ）のJavascript SDKがうまく動かない","user":{"login":"tsuuumi","id":14156156,"avatar_url":"https://avatars.githubusercontent.com/u/14156156?v=3","gravatar_id":"","url":"https://api.github.com/users/tsuuumi","html_url":"https://github.com/tsuuumi","followers_url":"https://api.github.com/users/tsuuumi/followers","following_url":"https://api.github.com/users/tsuuumi/following{/other_user}","gists_url":"https://api.github.com/users/tsuuumi/gists{/gist_id}","starred_url":"https://api.github.com/users/tsuuumi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tsuuumi/subscriptions","organizations_url":"https://api.github.com/users/tsuuumi/orgs","repos_url":"https://api.github.com/users/tsuuumi/repos","events_url":"https://api.github.com/users/tsuuumi/events{/privacy}","received_events_url":"https://api.github.com/users/tsuuumi/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/NIFTYCloud-mbaas/UserCommunity/labels/JavaScript","name":"JavaScript","color":"eb6420"},{"url":"https://api.github.com/repos/NIFTYCloud-mbaas/UserCommunity/labels/Monaca","name":"Monaca","color":"207de5"},{"url":"https://api.github.com/repos/NIFTYCloud-mbaas/UserCommunity/labels/%E3%83%87%E3%83%BC%E3%82%BF%E3%82%B9%E3%83%88%E3%82%A2","name":"データストア","color":"159818"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-07-09T16:14:22Z","updated_at":"2016-07-11T10:11:42Z","closed_at":"2016-07-11T10:11:42Z","body":"お世話になります。当方、jQuery初心者です。\r\n\r\nチュートリアルの早起きアプリをやってみたのですが、JavaScript SDKのバージョンの違いにより\r\n使えない関数がありました。\r\nバージョンは2.1.1です。\r\n\r\nオブジェクトを取得する`fetchAll()`が使えるのはわかるのですが、`count()`って使えないんでしょうか？\r\nデータストアからデータを抽出する際、`count ()`のみだと使えないのですが`fetchAll()`と組み合わせると使えます。\r\nもともと組み合わせて使うものなのでしょうか？\r\n\r\nまた、以下のコードで、\r\n\r\n```\r\n //データの保存\r\n var WakeUpClass = ncmb.DataStore(\"WakeUpClass\");\r\n var wakeup = new WakeUpClass();\r\n wakeup.set(\"hour\", hour);\r\n wakeup.save().then(function() {\r\n          //データの抽出\r\n          //var query = new NCMB.Query(WakeUpClass);\r\n          WakeUpClass.count().fetchAll()\r\n          .then(function(results) {\r\n               console.log(results.count); \r\n           });\r\n      });\r\n```\r\n\r\n`WakeUpClass.count().fetchAll()`だと動くのに、`WakeUpClass.fetchAll().count()`だと動かないのですが、なぜでしょうか？\r\n取得→総数をカウント、という手順なので`WakeUpClass.fetchAll().count()`かな？と思ったのですが…\r\n\r\nよろしくお願いいたします。\r\n\r\n"}}
{"actor":{"display_login":"tsuuumi"}}