MCPcopy Create free account
hub / github.com/RedisGraph/redisgraph-go / parsePath

Method parsePath

query_result.go:224–229  ·  view source on GitHub ↗
(cell interface{})

Source from the content-addressed store, hash-verified

222}
223
224func (qr *QueryResult) parsePath(cell interface{}) Path {
225 arrays := cell.([]interface{})
226 nodes := qr.parseScalar(arrays[0].([]interface{}))
227 edges := qr.parseScalar(arrays[1].([]interface{}))
228 return PathNew(nodes.([]interface{}), edges.([]interface{}))
229}
230
231func (qr *QueryResult) parseMap(cell interface{}) map[string]interface{} {
232 var raw_map = cell.([]interface{})

Callers 1

parseScalarMethod · 0.95

Calls 2

parseScalarMethod · 0.95
PathNewFunction · 0.85

Tested by

no test coverage detected