We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d3a6400 commit cd86178Copy full SHA for cd86178
python/cocoindex/storages.py
@@ -1,5 +1,6 @@
1
"""All builtin storages."""
2
from dataclasses import dataclass
3
+from typing import Sequence
4
5
from . import op
6
from . import index
@@ -44,8 +45,9 @@ class Neo4jRelationshipEndSpec:
44
45
@dataclass
46
class Neo4jRelationshipNodeSpec:
47
"""Spec for a Neo4j node type."""
- primary_key_fields: list[str]
48
- vector_indexes: list[index.VectorIndexDef] | None = None
+ primary_key_fields: Sequence[str]
49
+ vector_indexes: Sequence[index.VectorIndexDef] = ()
50
+
51
class Neo4jRelationship(op.StorageSpec):
52
"""Graph storage powered by Neo4j."""
53
0 commit comments