https://github.com/9clg6/neo4driver
Dart package for query Neo4J database
https://github.com/9clg6/neo4driver
dart database flutter
Last synced: 6 months ago
JSON representation
Dart package for query Neo4J database
- Host: GitHub
- URL: https://github.com/9clg6/neo4driver
- Owner: 9clg6
- License: other
- Created: 2022-05-17T12:35:54.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2023-02-22T10:23:48.000Z (over 3 years ago)
- Last Synced: 2024-10-14T09:28:19.711Z (over 1 year ago)
- Topics: dart, database, flutter
- Language: Dart
- Homepage: https://pub.dev/packages/neo4driver
- Size: 334 KB
- Stars: 12
- Watchers: 1
- Forks: 5
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# 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`:
```yaml
dependencies:
neo4driver: any
```
## Usage
### Initialization :
```dart
NeoClient.withAuthorization(
username: '{database_username}',
password: '{database_password}',
databaseAddress: 'http://{database_address}:7474/',
databaseName: '{database_name}',
);
```
### Usage post-initialization :
```dart
await NeoClient().createRelationship(
startNodeId: 1,
endNodeId: 2,
relationshipLabel: "rel_label",
properties: {
"Property1": "value1",
"Property2": 2,
},
);
```
### Features
- findRelationshipById
- findAllRelationship
- findRelationshipWithStartNodeIdEndNodeId
- findRelationshipWithNodeProperties
- isRelationshipExistsBetweenTwoNodes
- updateNodeById
- updateRelationshipById
- findAllNodesByProperties
- findAllNodes
- findNodeById
- findAllNodesByLabel
- getNodesWithHighestProperty
- computeShortestPathDijkstra
- computeDistanceBetweenTwoPoints
- createGraphProjection
- createRelationship
- createRelationshipFromNodeToNodes
- createNodeWithNode
- createNode
- deleteNodeById
- deleteAllNode