Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Hello,
In mongoengine the name 'meta' is used to attach metadata to the Document.
I have a problem with this name as all of my documents in MongoDB have this field and I cannot use mongoengine for this reason.
Is there a workaround for this?
Would you accept a breaking change where the meta field is renamed?
class MyDoc(Document): metadata = { "max_documents": 100 }Now of course renaming the meta name to something else might break it for others.
Would you accept a breaking change where the meta field is replaced with a "Meta" class
class MyDoc(Document): meta = StringField() class Meta: max_documents = 100While not trivial, the actual change would probably not be that bad to make. I have a test where I could initialize MyDoc with the 'class Meta' style.
If there is support for such a change, I would be happy to make it.
The text was updated successfully, but these errors were encountered: