# Convert JS examples into Yaml

Input JS code: [ // Tests { $project: { date: new Date(36), regex: /^123/, regex_with_flags: /^123/i, binary: BinData(0, "IA=="), empty_object: {}, empty_array: [], objectId: ObjectId("5f0f1d9b1c9d440000f3f3f3"), uuid: UUID("fac32260-b511-4c69-8485-a2be5b7dda9e"), list: [1, 2, 3], } }, // First Stage { $bucket: { groupBy: "$year_born", // Field to group by boundaries: [ 1840, 1850, 1860, 1870, 1880 ], // Boundaries for the buckets default: "Other", // Bucket ID for documents which do not fall into a bucket output: { // Output for each bucket "count": { $sum: 1 }, "artists" : { $push: { "name": { $concat: [ "$first_name", " ", "$last_name"] }, "year_born": "$year_born" } } } } }, // Second Stage { $match: { count: {$gt: 3} } } ]
Output YAML code: