Comments (3)
Hi, Rob!
def
function is in Data.Default module.
Use > import Data.Default
.
Cheers,
Bogdan
from hasbolt.
Ah, and also add extension OverloadedStrings
with :set -XOverloadedStrings
.
Here is minimal example for you:
> import Database.Bolt
> import Data.Default
> :set -XOverloadedStrings
> let config = def {user = "neo4j", password = "xxx"} :: BoltCfg
> connection <- connect config
> myQuery = query "create (n:Event {name: \"fprog meetup\"}) return n"
> run connection myQuery
[fromList [("n",S (Structure {signature = 78, fields = [I 21,L [T "Event"],M (fromList [("name",T "fprog meetup")])]}))]]
from hasbolt.
Thanks, @ozzzzz!
Yes, everything is right. The same was already discussed here.
from hasbolt.
Related Issues (20)
- Compiler error on versions > 0.1.1.3 HOT 2
- log output HOT 1
- Support for transactions HOT 6
- Neo4j 4 drops bolt version 1, perhaps default to higher version? HOT 8
- Show, Read instance to BoltCfg HOT 1
- profiling Cypher queries
- Bolt protocol 4+ support (with poll) HOT 11
- Sending queries with parameters not in map hangs HOT 10
- MERGE ON CREATE ON MATCH with more than 12 properties seems to cause a subsequent binary format decode error HOT 2
- Problem with official example HOT 1
- Exposing ResponseError data type
- recommended resource-pool hangs when connect is not successful HOT 1
- ToJSON and FromJSON Instances to Node and Relationship Datatypes HOT 2
- Doesn't work for Neo4j version 5.7
- variables as parameters HOT 2
- Fragile Pipes Syndrome HOT 2
- `Structure` is not exposed HOT 3
- `def` Cannot be found HOT 5
- Can't use Hasbolt with GrapheneDB HOT 17
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hasbolt.