I’ve been building some internal tools using MongoSwiftSync and I need to run some aggregations. I was looking for an example of how to configure this in Swift, but haven’t been able to find anything. It appears that aggregations are only supported in async mode - is this correct?
I’ve been getting an error related to the pipeline:
extraneous argument label 'pipeline:'
My call to set up the aggregation is:
let result = collection.aggregate( pipeline: [aggregationPipeline] )
aggregationPipeline is a BSONDocument.
I’ve got loads of systems that have aggregations running with Mongoid, or Elixir, but I’m hoping to move these to Swift once I get the configuration correct.