(g, lbl, *props, sync=False)
| 98 | return create_mandatory_constraint(g, "NODE", lbl, *props, sync=sync) |
| 99 | |
| 100 | def create_mandatory_edge_constraint(g, lbl, *props, sync=False): |
| 101 | return create_mandatory_constraint(g, "RELATIONSHIP", lbl, *props, sync=sync) |
| 102 | |
| 103 | def drop_constraint(g, ct_type, entity_type, lbl, *props): |
| 104 | params = ["GRAPH.CONSTRAINT", "DROP", g.name, ct_type, entity_type, lbl, "PROPERTIES", len(props)] |