---
title: "Discussion on \"Using SQL ( LIKE && OR ) statement in mongoose\" | Hashnode"
description: "Discussion on \"Using SQL ( LIKE && OR ) statement in mongoose\". Hey there, this happens to be the first post I would be sharing throughout my journey while building  https://codemarka.dev.\nProblem: \nI wanted to fetch users based on either email or username, this means that in the input element, you should type an..."
url: "https://hashnode.com/posts/using-sql-like-and-or-statement-in-mongoose/5fd27322cd0355570fae9c74"
---

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

Discussion

# [Using SQL ( LIKE && OR ) statement in mongoose](https://blog.codemon.me/using-sql-like-and-or-statement-in-mongoose?utm_source=hashnode&utm_medium=feed)

Hey there, this happens to be the first post I would be sharing throughout my journey while building https://codemarka.dev. Problem: I wanted to fetch users based on either email or username, this means that in the input element, you should type an...

Dec 10, 2020 · 2 min read · blog.codemon.me  
Read the article

-   [#nodejs](https://hashnode.com/tag/nodejs)
-   [#mongoose](https://hashnode.com/tag/mongoose)
-   [#sql](https://hashnode.com/tag/sql)
-   [#typescript](https://hashnode.com/tag/typescript)

## Written by

[Johnson awah Alfred](https://hashnode.com/@codemon)

@codemon

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

Backend engineer and Cloud security and computer networking enthusiast

Alfred is a software engineer and cyber security specialist based in Enugu, Nigeria. He is passionate about solving real-world problems through well-crafted software and leveraging blockchain technology.

## Responses 1

Markdown supported · ⌘↵ to post

[Okolo Johnbosco](https://hashnode.com/@PeterPan)

[Dec 10, 2020](https://hashnode.com/posts/using-sql-like-and-or-statement-in-mongoose/5fd27322cd0355570fae9c74/comment/5fd275dd1b71d6573621a9a5)

Nice post, I understood a quite a lot though I don't know backend stuffs but the code looks clean to me. And it's readable. Nice one bro

[Johnson awah Alfred](https://hashnode.com/@codemon)

[Dec 10, 2020](https://hashnode.com/posts/using-sql-like-and-or-statement-in-mongoose/5fd27322cd0355570fae9c74/comment/5fd275dd1b71d6573621a9a5#reply-5fd29e911b71d6573621ad10)

I appreciate man, happy you still got to grab something.
