[graphql] README updated, some refactoring
[gargantext.git] / src / Gargantext / Database / Query / Table / NodeNodeNgrams2.hs
index 503584c635fc3b764fa859bc97baa24ba3fcaf2d..cc2b1ba848b279e4b07b1647446ed94d7419b216 100644 (file)
@@ -29,14 +29,14 @@ import Prelude
 
 
 _queryNodeNodeNgrams2Table :: Query NodeNodeNgrams2Read
-_queryNodeNodeNgrams2Table = queryTable nodeNodeNgrams2Table
+_queryNodeNodeNgrams2Table = selectTable nodeNodeNgrams2Table
 
 -- | Insert utils
 insertNodeNodeNgrams2 :: [NodeNodeNgrams2] -> Cmd err Int
 insertNodeNodeNgrams2 = insertNodeNodeNgrams2W
                      . map (\(NodeNodeNgrams2 n1 n2 w) ->
                               NodeNodeNgrams2 (pgNodeId n1)
-                                              (pgInt4   n2)
+                                              (sqlInt4   n2)
                                               (pgDouble w)
                            )