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

Method PropertyKeys

graph.go:301–310  ·  view source on GitHub ↗

PropertyKeys, retrieves all properties names.

()

Source from the content-addressed store, hash-verified

299
300// PropertyKeys, retrieves all properties names.
301func (g *Graph) PropertyKeys() []string {
302 qr, _ := g.CallProcedure("db.propertyKeys", nil)
303
304 p := make([]string, len(qr.results))
305
306 for idx, r := range qr.results {
307 p[idx] = r.GetByIndex(0).(string)
308 }
309 return p
310}

Callers 1

getPropertyMethod · 0.95

Calls 2

CallProcedureMethod · 0.95
GetByIndexMethod · 0.80

Tested by

no test coverage detected