Posted by Robert on Wed 3 Dec 11:44
report abuse | download | new post
- import org.neo4j.api.core.*
- neo.shutdown()
- }
- transaction = neo.beginTx()
- try {
- transaction.success()
- transaction.failure()
- throw e
- }
- KNOWS;
- }
- withNeo(dbPath, {
- withTransaction({
- node = neo.createNode()
- node.setProperty('name', 'Romeo')
- println "Id: ${node.getId()}"
- println "Whois: ${node.getProperty('name')}"
- })
- })
Submit a correction or amendment below (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.