python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
Bulk insert with validation in MongoEngine
I'm inserting objects in bulk to MongoDB using Mongoengine like this (simplified code):
class Customer(Document):
first_name = StringField(max_length=100)
last_name = StringField(max_length=10...
P D
Votes: 0
Answers: 1
generate mongodb's ObjectId value from data in the doc
just to check if it is possible and if it worth the trouble:
i'm using python 3.9.5, with mongoengine as ORM.
lets say, i have data to to save in a collection:
{
"value": string,
&qu...

drizzt13
Votes: 0
Answers: 1
How do I create an MongoDB Atlas database using mongoengine
I'm using mongoengine in python and I cannot get it to create a database to connect to. I know how to use the connect function but I forgot how to create the DB or maybe they changed it?
I have all my...
William
Votes: 0
Answers: 1
Duplicating a mongodb document with new objectid uing mongoengine
I want to Duplicate an existing document and update a field and save it to the same database but how am I supposed to generate a new objectID? or the easier one how to just drop this field so that whe...
John
Votes: 0
Answers: 1