Showing posts with label Mongodb. Show all posts
Showing posts with label Mongodb. Show all posts

Thursday, March 11, 2021

Aggregate Pipelines Mongodb


db.purchase_orders.aggegate(
	[
		{$match : {customer : {$in : ["Mike", "Karen"]}}}
		{$group : {
			_id: "$product",
			total:{$sum : "$total"}
			}
		}
		{$sort  : {total : -1}}
	]
)

Azure - Pipeline - Add Approver for Stage

https://learn.microsoft.com/en-us/azure/devops/pipelines/process/approvals?view=azure-devops&tabs=check-pass