Commit 85a1d17b authored by Alexandre Delanoë's avatar Alexandre Delanoë

[BASHQL] adding semantics.

parent 010decf8
...@@ -145,13 +145,20 @@ post' = do ...@@ -145,13 +145,20 @@ post' = do
h <- home c h <- home c
let userId = 1 let userId = 1
-- TODO semantic to achieve -- TODO semantic to achieve
-- post c h [ Corpus "name" "{}" Nothing -- post c h [ Corpus "name" "{}" NoChildren
-- , Project "name" "{}" (Just [Corpus "test 2" "" Nothing]) -- , Project "name" "{}" (Children [Corpus "test 2" "" (Children [ Document "title" "metaData" NoChildren
-- , Document "title" "jsonData" NoChildren
-- ]
-- )
-- ]
-- )
-- ] -- ]
post c h [ node userId (last h) Corpus "name" "{}" post c h [ node userId (last h) Corpus "name" "{}"
, node userId (last h) Project "name" "{}" , node userId (last h) Project "name" "{}"
] ]
data Children = NoChildren | Children a
del' :: [NodeId] -> IO Int del' :: [NodeId] -> IO Int
del' ns = do del' ns = do
c <- connectGargandb "gargantext.ini" c <- connectGargandb "gargantext.ini"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment