Prismaçéã§è©±é¡æ²¸é¨°ä¸ï¼èªå調ã¹ï¼ã®TypedSQLã ããèªåã®ä¸ã§ã¯ããªãã¢ããã¨æã£ã¦ããã®ã§ããã®çç±ãèªããããªãTypedSQLã®æ©è½ã¨ãä»çµã¿ã«ã¤ãã¦ã¯è¨è¿°ããªãã®ã§ããã¥ã¡ã³ãã以ä¸ã®è¨äºãåç §ããã¨ããã Prismaã®é£ãã è¤éãªã¯ã¨ãªãçµã¿ç«ã¦ãã®ãç¹ã«é£ãããè¤éã¨ãã£ã¦ãä½10è¡ããããããªã¯ã¨ãªã¨ãã§ã¯ãªããjoinã¨ãéè¨é¢æ°ãããã¤ããããããã§ååè¤éã«ãªãããã¨ãã°ç¹å®ã®ã¦ã¼ã¶ã¼ã«ç´ã¥ãè¨äºãã³ã¡ã³ãã®æ°ãå«ãã¦åå¾ãããã¨ãããã¯ã¨ãªã¯é°å²æ°ãããªæããSQLã¨ãã¦ã¯å ¨ç¶é£ãããªãã SELECT posts.id, count(comments.id) AS cnt FROM posts INNER JOIN users ON posts.author_id = users.id LEFT JOIN comments ON posts.id =
{{#tags}}- {{label}}
{{/tags}}