We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cff3155 commit 48b0e90Copy full SHA for 48b0e90
neo4j-example/src/main/java/Neo4jContentRetrieverExample.java
@@ -36,6 +36,10 @@ public static void main(String[] args) {
36
try (Session session = driver.session()) {
37
session.run("CREATE (book:Book {title: 'Dune'})<-[:WROTE]-(author:Person {name: 'Frank Herbert'})");
38
}
39
+ // The refreshSchema is needed only if we execute write operation after the `Neo4jGraph` instance,
40
+ // in this case `CREATE (book:Book...`
41
+ // If CREATE (and in general write operations to the db) are performed externally before Neo4jGraph.builder(),
42
+ // the refreshSchema() is not needed
43
graph.refreshSchema();
44
45
Neo4jText2CypherRetriever retriever = Neo4jText2CypherRetriever.builder()
0 commit comments