SamuelTallet / MongoDB-PHP-GUI

Open-source graphical interface for MongoDB database. Written in PHP, JavaScript, HTML & CSS.
142 stars 33 forks source link

Can't insert exported data #2

Closed Delimer closed 4 years ago

Delimer commented 4 years ago

In base one document array[1] 0{5} _id{1} $oid:5f325f98114bec5750892193 email:delimer@gmail.com emailVerified{1} $date{1} $numberLong:1597141066973 createdAt{1} $date{1} $numberLong:1597136792802 updatedAt{1} $date{1} $numberLong:1597141066984

exporter [ { "_id": { "$oid": "5f325f98114bec5750892193" }, "email": "delimer@gmail.com", "emailVerified": { "$date": { "$numberLong": "1597141066973" } }, "createdAt": { "$date": { "$numberLong": "1597136792802" } }, "updatedAt": { "$date": { "$numberLong": "1597141066984" } } } ]

when try insert get error Error: invalid document for insert: keys cannot begin with "$": "$date"

SamuelTallet commented 4 years ago

Thanks @Delimer. I'll try to fix that.

SamuelTallet commented 4 years ago

Since v1.0.3 of MongoDB PHP GUI, insertion of exported data is possible (but keep in mind that for now only one document at once can be inserted). Please upgrade your version, then if you still experience any problem: feel free to reopen an issue.