Skip to content

Instantly share code, notes, and snippets.

@kumarshantanu
Created August 31, 2010 03:30
Show Gist options
  • Save kumarshantanu/558500 to your computer and use it in GitHub Desktop.
Save kumarshantanu/558500 to your computer and use it in GitHub Desktop.
(in-txn db
(let [e (find-by-id blog-entry-meta 3)
r ((find-rels e entry-comment-meta) e)
c (first r)]
(println "** Deleting comment **")
(delete c)
(println "** Deleting entry-comment graph **")
(delete-cascade e)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment