You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[x] latest
[ ] @next
[ ] 0.x.x (or put your version here)
Steps to reproduce or a small repository showing the problem:
@Entity()classEntityClass{
@ObjectIdColumn()_id: ObjectId;
@Column()name: string;}letent=newEntityClass();ent.name="abc";awaitconnection.mongoManager.save(ent);console.log(ent._id);// inserts new document but does not set _id. _id is undefined
The text was updated successfully, but these errors were encountered:
encobrain
changed the title
mongodb: .save() method not set _id column value
mongodb: .save() method does not set _id column value
Jan 25, 2019
Issue type:
[ ] question
[x] bug report
[ ] feature request
[ ] documentation issue
Database system/driver:
[ ]
cordova
[x]
mongodb
[ ]
mssql
[ ]
mysql
/mariadb
[ ]
oracle
[ ]
postgres
[ ]
sqlite
[ ]
sqljs
[ ]
react-native
[ ]
expo
TypeORM version:
[x]
latest
[ ]
@next
[ ]
0.x.x
(or put your version here)Steps to reproduce or a small repository showing the problem:
The text was updated successfully, but these errors were encountered: