Skip to content

Instantly share code, notes, and snippets.

@tomjack
Created June 4, 2010 01:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tomjack/4409a999e2d35b29dec4 to your computer and use it in GitHub Desktop.
Save tomjack/4409a999e2d35b29dec4 to your computer and use it in GitHub Desktop.
(defn convert-user-row-to-neo-struct [row]
(let [1st (-> (into {} row)
(rename-keys {:user_id :id})
(select-keys [:id :login]))
2nd (filter :required_param 1st)]
(assoc 2nd :type "user"))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment