Skip to content

Commit ee143e2

Browse files
committed
fix: add missing declarations
1 parent 0eb0277 commit ee143e2

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

docs/docs/ops/storages.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -345,6 +345,18 @@ graph TD
345345
```
346346

347347
Nodes with `Place` label in the example aren't exported explicitly using `NodeMapping`, so CocoIndex will automatically create them as long as they're still referenced by any relationship.
348+
You need to declare a `ReferencedNode`:
349+
350+
```python
351+
flow_builder.declare(
352+
cocoindex.storages.Neo4jDeclarations(
353+
...
354+
referenced_nodes=[
355+
cocoindex.storages.ReferencedNode(label="Place", primary_key_fields=["name"]),
356+
],
357+
),
358+
)
359+
```
348360

349361
### Neo4j
350362

0 commit comments

Comments
 (0)