MarkLogicUniversity / Geophoto

Sample MarkLogic application with binary, JSON, and RDF triple data
MIT License
12 stars 13 forks source link

Refactor updateDocument to use patch #3

Closed dmcassel closed 9 years ago

dmcassel commented 9 years ago

The updateDocument function is used to update the title and description of an image. Currently, it reads the document, updates it locally, then writes the entire document back. This approach is because patch replaceInsert could not work with just a value at the time the function was written.

tpiros commented 9 years ago

Committed: https://github.com/dmcassel/Geophoto/commit/b29397daa47a729875fb1358c14b661b7f8cfaf2