From 50a78dfdf9c9cf5d80c2c91ecdcd4aa524d90a52 Mon Sep 17 00:00:00 2001 From: Florent Biville Date: Fri, 27 Jan 2023 16:33:24 +0300 Subject: [PATCH] Document current limitation with property values --- neo4j/graph.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/neo4j/graph.go b/neo4j/graph.go index c853eeba..91847fc1 100644 --- a/neo4j/graph.go +++ b/neo4j/graph.go @@ -34,6 +34,8 @@ type PropertyValue interface { // The property type T must adhere to neo4j.PropertyValue // If the property does not exist, an error is returned // If the property type does not match the type specification, an error is returned +// +// Note: due to the current limited generics support, any property array value other than byte array is typed as []any. func GetProperty[T PropertyValue](entity Entity, key string) (T, error) { rawValue, found := entity.GetProperties()[key] if !found {