Skip to content

Commit 7f2baac

Browse files
committed
feat(client): add property support
1 parent 629851d commit 7f2baac

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

internal/client/types.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,13 @@ func (ra Item) Relation() knowledge.RelationWithID {
6767
}
6868
}
6969

70+
func (ra Item) Property() knowledge.Property {
71+
return knowledge.Property{
72+
Type: "string",
73+
Value: ra["value"].(string),
74+
}
75+
}
76+
7077
func (ra Item) Sources() []string {
7178
s, _ := ra["sources"].([]string)
7279
return s

0 commit comments

Comments
 (0)