@@ -15,26 +15,33 @@ class Relationship(BaseModel, extra="allow"):
1515 All options available in the NVL library (see https://neo4j.com/docs/nvl/current/base-library/#_relationships)
1616 """
1717
18+ #: Unique identifier for the relationship
1819 id : Union [str , int ] = Field (
1920 default_factory = lambda : uuid4 ().hex , description = "Unique identifier for the relationship"
2021 )
22+ #: Node ID where the relationship points from
2123 source : Union [str , int ] = Field (
2224 serialization_alias = "from" ,
2325 validation_alias = AliasChoices ("source" , "sourceNodeId" , "source_node_id" , "from" ),
2426 description = "Node ID where the relationship points from" ,
2527 )
28+ #: Node ID where the relationship points to
2629 target : Union [str , int ] = Field (
2730 serialization_alias = "to" ,
2831 validation_alias = AliasChoices ("target" , "targetNodeId" , "target_node_id" , "to" ),
2932 description = "Node ID where the relationship points to" ,
3033 )
34+ #: The caption of the relationship
3135 caption : Optional [str ] = Field (None , description = "The caption of the relationship" )
36+ #: The alignment of the caption text
3237 caption_align : Optional [CaptionAlignment ] = Field (
3338 None , serialization_alias = "captionAlign" , description = "The alignment of the caption text"
3439 )
40+ #: The size of the caption text
3541 caption_size : Optional [Union [int , float ]] = Field (
3642 None , gt = 0.0 , serialization_alias = "captionSize" , description = "The size of the caption text"
3743 )
44+ #: The color of the relationship
3845 color : Optional [ColorType ] = Field (None , description = "The color of the relationship" )
3946
4047 @field_serializer ("color" )
0 commit comments