---
title: "Discussion on \"How $or operator of MongoDB can make your head scratch\" | Hashnode"
description: "Discussion on \"How $or operator of MongoDB can make your head scratch\". Hey, what's the actual problem man?\n\nI was developing a user signup functionality for one of my applications in Node.js ❤️. I want any user can sign up either by their email or by their phone number, similar to an e-commerce sign-up feature ( You don..."
url: "https://hashnode.com/posts/how-or-operator-of-mongodb-can-make-your-head-scratch/658aa6456f04b950bbda3112"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [How $or operator of MongoDB can make your head scratch](https://abhaysinghs772.hashnode.dev/how-or-operator-of-mongodb-can-make-your-head-scratch?utm_source=hashnode&utm_medium=feed)

Hey, what's the actual problem man? I was developing a user signup functionality for one of my applications in Node.js ❤️. I want any user can sign up either by their email or by their phone number, similar to an e-commerce sign-up feature ( You don...

Dec 26, 2023 · 3 min read · abhaysinghs772.hashnode.dev  
Read the article

-   [#mongodb](https://hashnode.com/tag/mongodb)
-   [#nodejs](https://hashnode.com/tag/nodejs)
-   [#typescript](https://hashnode.com/tag/typescript)
-   [#express](https://hashnode.com/tag/express)
-   [#or](https://hashnode.com/tag/or)

## Written by

[Abhay Singh](https://hashnode.com/@abhaysinghs772)

@abhaysinghs772 · New Delhi

  
[View profile](https://hashnode.com/@abhaysinghs772)

JavaScript explorer

I am Abhay Kumar, a skilled Backend Engineer passionate about JavaScript, TypeScript, Node.js, and solving complex problems.

## Responses 1

Markdown supported · ⌘↵ to post

[Vishal Rajput](https://hashnode.com/@vishal550)

[Dec 26, 2023](https://hashnode.com/posts/how-or-operator-of-mongodb-can-make-your-head-scratch/658aa6456f04b950bbda3112/comment/658aae67e1f02b93559f0240)

👍
