---
title: "Discussion on \"null and Missing Look the Same in MongoDB — Until Your Queries Disagree\" | Hashnode"
description: "Discussion on \"null and Missing Look the Same in MongoDB — Until Your Queries Disagree\". How should you represent an authentication token after it has served its purpose? \nWill you assign it 'null' or 'remove it entirely' and what cost each bring?"
url: "https://hashnode.com/posts/null-and-missing-look-the-same-in-mongodb-until-your-queries-disagree/6a705b08d8a2070e561284c6"
---

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

Discussion

# [null and Missing Look the Same in MongoDB — Until Your Queries Disagree](https://webdev18.hashnode.dev/null-and-missing-look-the-same-in-mongodb-until-your-queries-disagree?utm_source=hashnode&utm_medium=feed)

How should you represent an authentication token after it has served its purpose? Will you assign it 'null' or 'remove it entirely' and what cost each bring?

Aug 3 · 11 min read · webdev18.hashnode.dev  
Read the article

-   [#chaiaurcode](https://hashnode.com/tag/chaiaurcode)
-   [#schema-design](https://hashnode.com/tag/schema-design)
-   [#database-modeling](https://hashnode.com/tag/database-modeling)
-   [#mongodb](https://hashnode.com/tag/mongodb)
-   [#mongoose](https://hashnode.com/tag/mongoose)
-   [#nodejs](https://hashnode.com/tag/nodejs)
-   [#authentication](https://hashnode.com/tag/authentication)
-   [#software-architecture](https://hashnode.com/tag/software-architecture)
-   [#fullstackdeveloper](https://hashnode.com/tag/fullstackdeveloper)
-   [#json](https://hashnode.com/tag/json)
-   [#database-performance](https://hashnode.com/tag/database-performance)

## Written by

[Deepanshu Yadav](https://hashnode.com/@DeepanshuYadav)

@DeepanshuYadav · Rewari, India

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

Web devloper

I am a developer learning web development , I am a college dropout pursuing my passion in software field

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
