Last updated:
0 purchases
neo4driver
Neo4Driver #
Neo4Driver is a Dart driver for Neo4j. The library uses the Neo4J HTTP API database.
Installation #
Add Neo4Driver to your project's pubspec.yaml file and run pub get:
dependencies:
neo4driver: any
copied to clipboard
Usage #
Initialization : #
NeoClient.withAuthorization(
username: '{database_username}',
password: '{database_password}',
databaseAddress: 'http://{database_address}:7474/',
databaseName: '{database_name}',
);
copied to clipboard
Usage post-initialization : #
await NeoClient().createRelationship(
startNodeId: 1,
endNodeId: 2,
relationshipLabel: "rel_label",
properties: {
"Property1": "value1",
"Property2": 2,
},
);
copied to clipboard
Features #
findRelationshipById
findAllRelationship
findRelationshipWithStartNodeIdEndNodeId
findRelationshipWithNodeProperties
isRelationshipExistsBetweenTwoNodes
updateNodeById
updateRelationshipById
findAllNodesByProperties
findAllNodes
findNodeById
findAllNodesByLabel
getNodesWithHighestProperty
computeShortestPathDijkstra
computeDistanceBetweenTwoPoints
createGraphProjection
createRelationship
createRelationshipFromNodeToNodes
createNodeWithNode
createNode
deleteNodeById
deleteAllNode
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.