forked from internetarchive/infogami
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add _key and _rev to the docs before returning them from store.
Till now it was not possible to find the key of the document once it is fetched from the store. Adding _key there solved this issue. _rev is like an e-tag added to the document. It is not used now, but eventually it will be used to enforce constistancy and detecting conflicts.
- Loading branch information
1 parent
73dcd40
commit 81af4eb
Showing
3 changed files
with
54 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters