I need to implement the following behavior.
- Begin transaction
- Upsert the graph (add a few nodes and relationships between those nodes and existing nodes)
- Detect if a cycle was added as a result of 2
- If cycle then rollback
- If not then commit the transaction
Is Dgraph capable of implementing that behavior?