Passing a string as data argument to the save method causes the implementation here to pass the string to collection.update which throws an error.
if jive-persistence-mongo wants to support storing multiple data types, it needs to wrap the incoming data in a simple object.
Otherwise, consistency should be provided to the users by making the simpler storages throw errors in the same cases.
Passing a string as
dataargument to thesavemethod causes the implementation here to pass the string tocollection.updatewhich throws an error.if
jive-persistence-mongowants to support storing multiple data types, it needs to wrap the incoming data in a simple object.Otherwise, consistency should be provided to the users by making the simpler storages throw errors in the same cases.