cURL
curl --request POST \ --url http://localhost:8080/api/v1/query/mongodb \ --header 'Content-Type: application/json' \ --header 'x-api-key: <api-key>' \ --data ' { "collection": "<string>", "filter": {}, "projection": {}, "limit": 20 } '
{ "results": [ {} ], "count": 123 }
Query a MongoDB collection with optional filter and projection. Blocks whereandwhere and whereandfunction operators.
Optional API key for authentication (enabled via application.yaml)
MongoDB collection name
MongoDB query filter
Fields to include/exclude
Maximum documents to return (max 1000)
Query results