pasancode
pasancode

Reputation: 125

When and how org.neo4j.graphdb and org.neo4j.driver is used?

I have been using Neo4j driver for an Java Project.When dealing with nodes i saw that neo4j driver has a Node Class as well as the neo4j grpahdb. Neo4j graphdb's node could do many things including getting the id of a node. I want to know how these Node classes are used.

Upvotes: 1

Views: 214

Answers (1)

Frank Pavageau
Frank Pavageau

Reputation: 11715

The Java core API (org.neo4j.graphdb) is used when the code runs in the same JVM as Neo4j, which can happen in 2 situations:

The driver API (org.neo4j.driver) is used when accessing Neo4j remotely, with the Bolt protocol.

Upvotes: 3

Related Questions