-
Hi, What is the purpose of Scott |
Beta Was this translation helpful? Give feedback.
Answered by
marcj
Sep 4, 2021
Replies: 1 comment 6 replies
-
It will be a string. It can't return an ObjectId because we don't have such a class in our codebase. If you use mongo's official client, then this won't work, as "t.mongoId" is for deepkit/orm, not mongo's javascript driver. If you pass in an object from mongo's driver, it probably won't do anything with its type, which is what you see. What does your code look like? |
Beta Was this translation helpful? Give feedback.
6 replies
Answer selected by
smolinari
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It will be a string. It can't return an ObjectId because we don't have such a class in our codebase. If you use mongo's official client, then this won't work, as "t.mongoId" is for deepkit/orm, not mongo's javascript driver. If you pass in an object from mongo's driver, it probably won't do anything with its type, which is what you see. What does your code look like?