You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have been looking at adding support for a TypedFrame class that would allow simple type validation for documents based on Python types. I've avoided this in general because of the performance overhead but I see no reason not to add it as something people can use optionally.
My personal preference when working with Mongo is to keep validation logic separate (for example within forms) but this isn't to everyones taste and I'm not convinced by any means I'm correct anyhow.
I'm working on a web development framework based on flask, MongoFrames (and a bunch of other open source libraries we're intending to release shortly) which is dividing my time (and that of my colleagues) across a wide array of tasks currently. I expect this to be the case until March when we hope to officially release the new web development framework, included in that planned work are a number of updates to MongoFrames including support for a TypedFrame class - but as of now I don't have a more accurate time frame than that I'm afraid.
Hi.
It would be great if MongoFrame implements also a check of field type/structure.
Let me say I want to have all the documents of a certain type with the same _id structure:
so when I create a new Test class, i could do the following:
and the result _id will be "test_id_1234"
In this way it's more simple also to document the structure of the document.
Let me know if this could be in the philosophy of MongoFrames or it's better to use an external validator. In the latter case, any advice?
Thanks
The text was updated successfully, but these errors were encountered: