When I use insertMany all documents _id fields are strings instead of ObjectId. However when I use create and pass an array it works fine but instead of one query it performs separate query for each item of the array.
As it is obvious as the array grows it would be critical problem.
How can I use insertMany with the fields of type ObjectId instead of string?
0 comments:
Post a Comment
Thanks