An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          

# Neo4Driver

![enter image description here](https://github.com/ClementG63/Neo4Driver/blob/main/screenshots/neo4dart_splash.png?raw=true)

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