Format find queries and aggregation pipelines.
Shell syntax is fine: unquoted keys, single quotes, trailing commas, comments, ObjectId(), ISODate(), NumberLong().
mongosh-style with wrappers preserved.
Paste a query or pipeline
Pick an example above to see find, aggregate, $match, $group, $lookup and $project.
Formatting only. Nothing connects to a database.