"users"is collection under which users will be stored. You may use different collections for different objects to separate them. In
store methodwe are passing
addDocumentEcotone will convert this object to
JSONand store it chosen provider's storage. When we fetch the user using
getDocumentwe are passing the saved collection name and user id, the conversion back to the user will be done automatically.
drop whole collection,
updating / upserting document,