iOnic DB document id callback

Hey,

I using the iOnic Cloud DB to store some use metadata.
So when I create a new document in the cloud, the DB creates automatic an id for this document.
My question is if it’s possible to receive this special id as a callback after using this method

messages.store({ msg: 'Hello World!' });

Because later I want to update the Document, so is want to store the generated id local in the application