Use default id generator for user in mongo (mongoose) adapter #1640
Arctomachine
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
First quoting documentation.
What we do here is following:
Why it is bad? We disable default thing to do exactly same thing manually and get roughly identical result at expense of developer experience.
As far as I understand original motivation, we expect
_id
to return string, while default generator uses_id
for object id andid
for string id. But it is perfectly fine because adapter can easily remapid
to_id
right after fetching user from database.Or is there something else that makes this simple improvement impossible?
Beta Was this translation helpful? Give feedback.
All reactions