michaelklishin/neocons — pull request #7 by ZackGC (2012-09-13 21:56:12+00:00)
Title: Sensible defaults for instantiate-record-from

When you hit a index looking for an item and that item doesn't exist for the given key-value pair, neocons throws errors. It tries to call instantiate-record-from on the payload returned from the index and is unable to because only a empty array is returned. Instead of throwing errors, this defaults to just passing back whatever it got from neo4j unchanged. Future work can be done for mapping over arrays of elements recursively, but right now I wanted to get something in that stops errors from getting thrown so often on index misses.
-Zack