Thanks for posting your question. Here’s a Quick Start tutorial written by my colleague @nraboy on how to form an Aggregation Pipeline with MongoDB and Golang.
It seems that you declare your stages, then use the Aggregate operation to execute your pipeline (sample code taken from linked quick start above):
Hello there. I’m having the same problem traducing my $unionWith mongo query to Golang driver. That " pipeline: [] " part is killing me. What’s the logic to follow in order to get the traductions? Is there a syntax guide?