Willin Wang пре 6 година
родитељ
комит
0aeefe42ba
1 измењених фајлова са 2 додато и 2 уклоњено
  1. 2 2
      experience/graphql/dataloader.md

+ 2 - 2
experience/graphql/dataloader.md

@@ -145,8 +145,8 @@ CountLoader.loadMany([
 最终会拼成:
 
 ```sql
-SELECT xxx as code FROM TABLE1 WHERE xxx 
-UNION SELECT xxx as code FROM TABLE2 WHERE xxx 
+SELECT xxx as code, COUNT(1) as count FROM TABLE1 WHERE xxx 
+UNION SELECT xxx as code, COUNT(1) as count FROM TABLE2 WHERE xxx 
 -- ...
 ```