Storage service question

0 votes

Hi All

In documentation of storage service(SaveOrUpdateDocumentByKeyValue) there is a note saying that "If no document is found with this key value pair then a new document is inserted.". How can I understand if document was already there or newly inserted?

Thanks

asked Aug 11, 2016 in Unity by gokhan (20 points)

1 Answer

0 votes
Hi Gokhan,

Greetings!!!

Yes, It will do the same functionality. Whenever a document is created or updated, there are two keys associated with the doc which are createdAt and updatedAt. If you need to check that if the doc is updated or newly created then you can look for these keys.

Let me know if it helps.

Thanks

Vishnu Garg
answered Aug 11, 2016 by Vishnu Garg (674 points)
edited Aug 12, 2016 by shepAdmin
Download Widgets
Welcome to ShepHertz Product line forum, where you can ask questions and receive answers from the community. You can also reach out to us on support@shephertz.com
...