Skip to content

Commit 50a78df

Browse files
committed
Document current limitation with property values
1 parent b17318e commit 50a78df

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

neo4j/graph.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ type PropertyValue interface {
3434
// The property type T must adhere to neo4j.PropertyValue
3535
// If the property does not exist, an error is returned
3636
// If the property type does not match the type specification, an error is returned
37+
//
38+
// Note: due to the current limited generics support, any property array value other than byte array is typed as []any.
3739
func GetProperty[T PropertyValue](entity Entity, key string) (T, error) {
3840
rawValue, found := entity.GetProperties()[key]
3941
if !found {

0 commit comments

Comments
 (0)