❔ Insert a document to a MongoDB
Hey there...
I am trying to build a simple API connected to a MongoDB. I have customers and I want to add those to the DB
This is my customer class:
It inherits from BaseCustomer:
I just simply insert it like this:
Why is everything displayed except the key?
(Img1)
If I change the Key property in BaseCustomer to
only the key appears
(Img2)
Why???
Thanks in advance
1 Reply
Looks like nothing has happened here. I will mark this as stale and this post will be archived until there is new activity.