Playground
Playground
Shape list APIs without touching a database. Pair this with the docs when wiring conditionalFilters in TypeScript.
buildMongoQuery runs locally — switch inputs, watch the output panel update.
Query params
String values — same shape as a typical req.query object.
Config
BuildMongoQueryConfig — searchableFields, allowedFilters, defaults, etc.
Output
BuildMongoQueryResult
{
"filter": {
"status": "active",
"isDeleted": false,
"$or": [
{
"name": {
"$regex": "john",
"$options": "i"
}
},
{
"email": {
"$regex": "john",
"$options": "i"
}
},
{
"designation": {
"$regex": "john",
"$options": "i"
}
}
]
},
"sort": {
"createdAt": -1
},
"page": 1,
"limit": 20,
"skip": 0
}