Skip to content

Instantly share code, notes, and snippets.

@travis
Created November 14, 2013 23:31
Show Gist options
  • Select an option

  • Save travis/7476327 to your computer and use it in GitHub Desktop.

Select an option

Save travis/7476327 to your computer and use it in GitHub Desktop.
(go
(try
(let [posting-ch (parse/get Posting "xWMyZ4YEGZ")
comments-ch (parse/find (doto (Query. Comment)
(.equalTo "posting" posting-pointer)))
posting (<? posting-ch)
comments (<? comments-ch)]
;; now we can do something
)
(catch js/Error e
;; and we handle errors in one place
)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment