Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mongodb _id Serialized to Id #97

Open
rishat5081 opened this issue Nov 11, 2022 · 0 comments
Open

Mongodb _id Serialized to Id #97

rishat5081 opened this issue Nov 11, 2022 · 0 comments

Comments

@rishat5081
Copy link

I have serialized the _id with the following data but the results are different, serializer update the _id to the Id

_id: '636a92a97624f9a6eef53a74', fullName: 'Hammas', email: 'hammas@gmail.com', avatar: 'https://cloudflare-ipfs.com/ipfs/Qmd3W5DuhgHirLHGVixi6V76LhCkZUz6pnFt5AJBiyvHye/avatar/153.jpg', geoLocation: { type: 'Point', coordinates: [ 58.09623660121784, -88.42758967021332 ], _id: new ObjectId("636a92a97624f9a6eef53a76") }, isNewProfile: false }

here is the following response i am getting after serializer

"attributes": { "fullName": "Hammas", "email": "hammas@gmail.com", "isNewProfile": false, "geoLocation": { "type": "Point", "coordinates": [ 58.09623660121784, -88.42758967021332 ], "_id": "636a92a97624f9a6eef53a76" }, "avatar": "https://cloudflare-ipfs.com/ipfs/Qmd3W5DuhgHirLHGVixi6V76LhCkZUz6pnFt5AJBiyvHye/avatar/153.jpg", "Id": "636a92a97624f9a6eef53a74"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant