(graph, label, *properties, sync=False)
| 34 | return graph.query(q, read_only=True) |
| 35 | |
| 36 | def create_node_exact_match_index(graph, label, *properties, sync=False): |
| 37 | q = f"CREATE INDEX for (n:{label}) on (" + ','.join(map('n.{0}'.format, properties)) + ")" |
| 38 | return _create_index(graph, q, label, "exact-match", sync) |
| 39 | |
| 40 | def create_edge_exact_match_index(graph, relation, *properties, sync=False): |
| 41 | q = f"CREATE INDEX for ()-[r:{relation}]->() on (" + ','.join(map('r.{0}'.format, properties)) +")" |