Builds pipeline
Returns aggregation pipeline in format suitable for mongodb aggregate query
@override List<Map<String, Object>> build() => stages.map((stage) => stage.build()).toList();