neo4j_dart 0.3.2 copy "neo4j_dart: ^0.3.2" to clipboard
neo4j_dart: ^0.3.2 copied to clipboard

Dart 1 only

A Neo4j driver for Dart.

example/neo4j_dart.dart

// Copyright (c) 2015, <your name>. All rights reserved. Use of this source code
// is governed by a BSD-style license that can be found in the LICENSE file.

library neo4j_dart.example;

import 'package:neo4j_dart/neo4j_dart.dart';

main() async {
  var db = new Neo4j();
  var result = await db.cypher('''
        Create (dart:Language {dart})-[:connects_to]->(neo4j:Database {neo4j})
        Return id(dart), id(neo4j)
      ''', {
      'dart': { 'name': 'Dart' },
      'neo4j': { 'name': 'Neo4j' },
  });

  print('successfully created two nodes with id ${result['data'][0]['row'].join(' and ')}');
}
1
likes
20
points
11
downloads

Publisher

unverified uploader

Weekly Downloads

A Neo4j driver for Dart.

Homepage

License

unknown (license)

Dependencies

crypto, http, quiver, warehouse

More

Packages that depend on neo4j_dart