package repository // Helper functions for safe property access from Neo4j nodes func getStringProp(props map[string]interface{}, key string) string { if val, ok := props[key].(string); ok { return val } return "" } func getBoolProp(props map[string]interface{}, key string) bool { if val, ok := props[key].(bool); ok { return val } return false } func getFloat64Prop(props map[string]interface{}, key string) float64 { if val, ok := props[key].(float64); ok { return val } return 0 } func getInt64Prop(props map[string]interface{}, key string) int64 { if val, ok := props[key].(int64); ok { return val } return 0 } func getIntProp(props map[string]interface{}, key string) int { return int(getInt64Prop(props, key)) }