Skip to content

Find user from mongo DB using phone number #2347

@codydev-git

Description

@codydev-git

How are you?
I hope you are doing great.
I need a function to find a user from the database using a phone number.
But in the database, the user's phone number has many formats
+1 (1234) 123-1234
1234567890
(1234) 124 1234
+1234567890
+1 234 567 9012
really many formats...
.....
In this case, How can I find a user with this format "1234567890" phone number?
Thank you

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions