I have a few deprecated custom endpoints in my application to support migration from an old API to Eve. One of my custom endpoints implements an endpoint for updating documents in the MongoDB database. The collection associated with those documents has a schema defined in settings.py
which works as expected when performing a normal post. However, when I use update_one()
instead of going directly through the API provided by Eve the schema is not respected.
Is the schema that is defined in settings.py
not applied to the collection itself in the database? Is there a good way to apply that schema to the collection?