Closed BigRoy closed 5 years ago
The avalon.io module exposes save() from Pymongo Collections, however this seems to be deprecated in favor of replace_one and insert_one.
avalon.io
save()
replace_one
insert_one
Adding this issue here to ensure we're aware of this deprecation and have any features we implement use replace_one and insert_one moving forward.
We currently have replace_one and insert_one exposed via avalon.io too, so it's recommended to use those. :)
Note that we'll need to swap out save in the inventory functions too:
save
I know this one 🙋♂ . In the use case of inventory, I think we should change to use replace_one.
inventory
Issue
The
avalon.io
module exposessave()
from Pymongo Collections, however this seems to be deprecated in favor ofreplace_one
andinsert_one
.Adding this issue here to ensure we're aware of this deprecation and have any features we implement use
replace_one
andinsert_one
moving forward.We currently have
replace_one
andinsert_one
exposed viaavalon.io
too, so it's recommended to use those. :)Note that we'll need to swap out
save
in the inventory functions too: