Skip to content

@t.mongoId - what should it do? #143

Answered by marcj
smolinari asked this question in Q&A
Discussion options

You must be logged in to vote

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?

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@marcj
Comment options

marcj Sep 5, 2021
Maintainer

@smolinari
Comment options

@smolinari
Comment options

@marcj
Comment options

marcj Sep 6, 2021
Maintainer

@smolinari
Comment options

Answer selected by smolinari
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants