Add auto type inference to loadQuery
+ useQuery
#1759
+275
−486
loadQuery
+ useQuery
#1759