Skip to main content
Glama
chzkyy

mcp-mongodb

by chzkyy

replace_one

Replaces the entire content of a single MongoDB document matching a filter with a new document. Supports upsert to create a document when no match exists.

Instructions

Ganti seluruh isi satu dokumen yang cocok dengan filter dengan dokumen baru.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
filterNoQuery filter MongoDB. Contoh: {"status": "aktif", "umur": {"$gt": 25}}. Kirim sebagai objek atau string JSON. Gunakan {} untuk semua dokumen.
upsertNoJika true, dokumen baru dibuat bila tidak ada yang cocok dengan filter (default false).
databaseNoNama database tujuan. Opsional jika MONGODB_DB sudah diatur.
collectionYesNama koleksi.
replacementNoDokumen pengganti LENGKAP (tanpa operator $). Seluruh isi dokumen lama diganti.

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/chzkyy/mcp_mongodb'

If you have feedback or need assistance with the MCP directory API, please join our Discord server