Firestoreã§åè¦ç´ ã®æ°ãã«ã¦ã³ãããæ¹æ³ãç´¹ä»ãã¾ããSQLæã§è¨ãã¨ããã®ãCOUNT()æã§ã¬ã³ã¼ã件æ°ãåå¾ããæ¹æ³ã®ãFirestoreã§ã®ããæ¹ã§ãã ç°¡åãªä»¶æ°ã®åå¾æ¹æ³ããã件æ°ãè¨å¤§ã«ãªãã³ã¬ã¯ã·ã§ã³ã®å¹ççãªã«ã¦ã³ãæ¹æ³ã«ã¤ãã¦ãç´¹ä»ãã¦ããã¾ãã ã¹ãã³ãµã¼ãªã³ã¯ 100件ç¨åº¦ã®å°ããã³ã¬ã¯ã·ã§ã³ã®ã«ã¦ã³ãæ¹æ³ ã³ã¬ã¯ã·ã§ã³ã®æ°ã100件ç¨åº¦ã®å ´åã¯ãã¯ã©ã¤ã¢ã³ããµã¤ãã§ã«ã¦ã³ãããã®ã楽ã§ãã以ä¸ã®ãµã³ãã«ã³ã¼ãã¯ãusersã³ã¬ã¯ã·ã§ã³ãåå¾ãsizeããããã£ã§è¦ç´ ã®æ°ãåå¾ãã¦ãã¾ãã db.collection('users').get().then(snap => { size = snap.size // will return the collection size }); usersã³ã¬ã¯ã·ã§ã³ã®å ¨ãã¼ã¿ãã¯ã©ã¤ã¢ã³ãå´ã§ãã¦ã³ãã¼ãããè¦ç´ æ°
{{#tags}}- {{label}}
{{/tags}}