(props []interface{})
| 154 | } |
| 155 | |
| 156 | func (qr *QueryResult) parseProperties(props []interface{}) map[string]interface{} { |
| 157 | // [[name, value type, value] X N] |
| 158 | properties := make(map[string]interface{}) |
| 159 | for _, prop := range props { |
| 160 | p, _ := redis.Values(prop, nil) |
| 161 | idx, _ := redis.Int(p[0], nil) |
| 162 | prop_name := qr.graph.getProperty(idx) |
| 163 | prop_value := qr.parseScalar(p[1:]) |
| 164 | properties[prop_name] = prop_value |
| 165 | } |
| 166 | |
| 167 | return properties |
| 168 | } |
| 169 | |
| 170 | func (qr *QueryResult) parseNode(cell interface{}) *Node { |
| 171 | // Node ID (integer), |
no test coverage detected