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 b17318e commit 50a78dfCopy full SHA for 50a78df
neo4j/graph.go
@@ -34,6 +34,8 @@ type PropertyValue interface {
34
// The property type T must adhere to neo4j.PropertyValue
35
// If the property does not exist, an error is returned
36
// 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.
39
func GetProperty[T PropertyValue](entity Entity, key string) (T, error) {
40
rawValue, found := entity.GetProperties()[key]
41
if !found {
0 commit comments