---
title: "Discussion on \"How To Send Secure API Responses with MongoDB\" | Hashnode"
description: "Discussion on \"How To Send Secure API Responses with MongoDB\". Learn how to modify MongoDB responses for consistent APIs by transforming `_id` to `id` in JSON responses"
url: "https://hashnode.com/posts/secure-api-responses/6639a8822811d14939a70f8d"
---

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

Discussion

# [How To Send Secure API Responses with MongoDB](https://markmaksi.hashnode.dev/secure-api-responses?utm_source=hashnode&utm_medium=feed)

Learn how to modify MongoDB responses for consistent APIs by transforming \`\_id\` to \`id\` in JSON responses

May 7, 2024 · 2 min read · markmaksi.hashnode.dev  
Read the article

-   [#mongodb](https://hashnode.com/tag/mongodb)
-   [#nodejs](https://hashnode.com/tag/nodejs)
-   [#web-development](https://hashnode.com/tag/web-development)
-   [#backend](https://hashnode.com/tag/backend)

## Written by

[Mark Maksi](https://hashnode.com/@markmaksi)

@markmaksi · Italy

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

Software Engineer

Full Stack JS Engineer | Content Creator | I'm on a personal mission to provide high quality content on building web apps from code to production through my blog and my YouTube channel.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
