Closed YoEight closed 12 years ago
Hi,
eval function in Database.MongoDB.Query module only expects a javascript object from server.
this will failed
eval (Javascript ([] :: [Field]) "return 5;")
You've to trick it like this
eval (Javascript ([] :: [Field]) "return {foo: 5};")
Thanks for the issue! I will change eval function's signature to eval :: (MonadIO m, Val v) => Javascript -> Action m v in next release.
eval :: (MonadIO m, Val v) => Javascript -> Action m v
Hi,
eval function in Database.MongoDB.Query module only expects a javascript object from server.
this will failed
You've to trick it like this