Explorar el Código

Docsify Auto Published

Willin Wang hace 6 años
padre
commit
0aeefe42ba
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  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 
 -- ...
 ```