Giter Site home page Giter Site logo

Comments (10)

zmactep avatar zmactep commented on June 14, 2024

Hi!

I cannot reproduce the issue on current master head:

λ> pipe <- connect $ def {user = "neo4j", password = "neo4j"}
λ> result <- run pipe $ queryP "MATCH (n {prop: {prop}}) RETRUN n" M.empty
λ> print result
[]

Which version of Neo4j do you use?

from hasbolt.

epsilonhalbe avatar epsilonhalbe commented on June 14, 2024

there's a typo in your query - RETRUN /= RETURN

from hasbolt.

zmactep avatar zmactep commented on June 14, 2024

My fault. It shows one more problem: hasbolt does not provide error messages on syntax errors. I'll fix it, thank you!

P.S. But with correct 'return' or without it everything still works:

{-# LANGUAGE OverloadedStrings #-}

import           Database.Bolt           hiding (Value)
import qualified Data.Map.Strict         as M

main :: IO ()
main = do pipe <- connect $ def {user = "neo4j", password = "neo4j"}
          result <- run pipe $ queryP "MATCH (d {prop: {prop}})" M.empty
          putStr "Result:"
          print result
          close pipe

retruns Result:[]

from hasbolt.

zmactep avatar zmactep commented on June 14, 2024

@epsilonhalbe please check if latest commit works to you.

from hasbolt.

epsilonhalbe avatar epsilonhalbe commented on June 14, 2024

@zmactep no it does not work - my neo4j is a 3.1.0 - inside a docker container, I also tried the docker image for 3.0 which is (3.0.7 at the moment) without any results

from hasbolt.

epsilonhalbe avatar epsilonhalbe commented on June 14, 2024

the docker command I use is

docker run --name neo4j --publish=7474:7474 --publish=7687:7687 --volume=$HOME/neo4j/data:/data --volume=$HOME/neo4j/logs:/logs neo4j:3.1

and later docker start neo4j

from hasbolt.

zmactep avatar zmactep commented on June 14, 2024

It is deeply magical. I'll try on one more laptop, but as for now I have this:

with return:
2017-01-16 14 47 40

and without it:
2017-01-16 14 48 56

from hasbolt.

epsilonhalbe avatar epsilonhalbe commented on June 14, 2024

I have now tried this at home (new fresh docker container, linux native not in a vmware container) - and it works fine - so I will delete the docker container & image and all of the temporary files I have created and try it again tomorrow

from hasbolt.

zmactep avatar zmactep commented on June 14, 2024

Ok, thanks! I use OS X + Docker for Mac and CentOS 7 + native docker. Both work fine for me.

from hasbolt.

zmactep avatar zmactep commented on June 14, 2024

So, I close this issue, as I cannot reproduce it on any machine.

from hasbolt.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.