+1 vote
in Other by
I am interesting, why my documents with fields of type BsonArray not saved into database?

Field names:

update_posts_oids

child_posts_oids

If I remove symbol _ from field names my documents are stored in database and all ok. These fields are indexable. What wrong with these field names?

JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)

1 Answer

0 votes
by
Nothing, that's perfectly allowed :

> db.test.save({a_a:1})

> db.test.find()

{ "_id" : ObjectId("4eef2d73f6c42df1ecd67a71"), "a_a" : 1 }

Your issue is likely to be somewhere else. Note that you should use the latest stable version to verify this as there were some issues with special symbols in field names in earlier versions (although I do not recall this one specifically being one of those fixed issues).

Related questions

+1 vote
asked Feb 1, 2022 in Other by DavidAnderson
+1 vote
asked Feb 1, 2022 in Other by DavidAnderson
...