Skip to main content

mongodb

Query MongoDB Atlas — collections, documents, and aggregations via the Data API.

소스 정보

저장소
ThinkfleetAI/thinkfleet-engine
최근 소스 활동
2026년 2월 1일 16:21
감지된 SKILL.md 언어
영어
스타
0
포크
0

설치 방법

기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.

소스 파일 검토

설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.

SKILL.md 표시 중

SKILL.md
소스 지침 · 읽기 전용 미리보기
name
mongodb
description
Query MongoDB Atlas — collections, documents, and aggregations via the Data API.
metadata
{"thinkfleetbot":{"emoji":"🍃","requires":{"bins":"[Truncated]","env":"[Truncated]"}}}
# MongoDB Atlas Query collections and documents via the MongoDB Atlas Data API. ## Environment Variables - `MONGODB_URI` - MongoDB connection URI or Atlas Data API key ## Find documents ```bash curl -s -X POST -H "Content-Type: application/json" \ -H "api-key: $MONGODB_URI" \ "https://data.mongodb-api.com/app/data-xxx/endpoint/data/v1/action/find" \ -d '{"dataSource":"Cluster0","database":"mydb","collection":"mycoll","filter":{},"limit":10}' | jq '.documents[]' ``` ## Insert document ```bash curl -s -X POST -H "Content-Type: application/json" \ -H "api-key: $MONGODB_URI" \ "https://data.mongodb-api.com/app/data-xxx/endpoint/data/v1/action/insertOne" \ -d '{"dataSource":"Cluster0","database":"mydb","collection":"mycoll","document":{"name":"test","value":42}}' | jq '{insertedId}' ``` ## Aggregate ```bash curl -s -X POST -H "Content-Type: application/json" \ -H "api-key: $MONGODB_URI" \ "https://data.mongodb-api.com/app/data-xxx/endpoint/data/v1/action/aggregate" \ -d '{"dataSource":"Cluster0","database":"mydb","collection":"mycoll","pipeline":[{"$group":{"_id":"$field","count":{"$sum":1}}}]}' | jq '.documents[]' ``` ## Notes - Replace `data-xxx` with your Atlas app ID. - Always confirm before inserting or deleting documents.
GitHub에서 보기