Depedency Container
."users"
is collection under which users will be stored. You may use different collections for different objects to separate them.
In store method
we are passing User
object to addDocument
Ecotone will convert this object to JSON
and store it chosen provider's storage.
When we fetch the user using getDocument
we are passing the saved collection name and user id, the conversion back to the user will be done automatically. ecotone/jms-converter
, then it will be done for you.drop whole collection
, updating / upserting document
, deleting
and counting documents.