Browse Source

Docsify Auto Published

Willin Wang 6 years ago
parent
commit
0aeefe42ba
1 changed files with 2 additions and 2 deletions
  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 
 -- ...
 ```