diff --git a/driver/src/main/scala/org/mongodb/scala/model/Aggregates.scala b/driver/src/main/scala/org/mongodb/scala/model/Aggregates.scala index 8e243a6a..7895d38e 100644 --- a/driver/src/main/scala/org/mongodb/scala/model/Aggregates.scala +++ b/driver/src/main/scala/org/mongodb/scala/model/Aggregates.scala @@ -339,21 +339,11 @@ object Aggregates { def unwind(fieldName: String, unwindOptions: UnwindOptions): Bson = JAggregates.unwind(fieldName, unwindOptions) /** - * Creates a `\$out` pipeline stage that writes to the collection with the specified name + * Creates a `\$out` pipeline stage for the specified filter * * @param collectionName the collection name * @return the `\$out` pipeline stage * @see [[http://docs.mongodb.org/manual/reference/operator/aggregation/out/ \$out]] */ def out(collectionName: String): Bson = JAggregates.out(collectionName) - - /** - * Creates a `\$out` pipeline stage that writes to the collection with the specified name, using the specified options - * - * @param collectionName the collection name - * @param options the options - * @return the `\$out` pipeline stage - * @see [[http://docs.mongodb.org/manual/reference/operator/aggregation/out/ \$out]] - */ - def out(collectionName: String, options: AggregateOutStageOptions): Bson = JAggregates.out(collectionName, options) } diff --git a/driver/src/main/scala/org/mongodb/scala/model/package.scala b/driver/src/main/scala/org/mongodb/scala/model/package.scala index cd5020d3..e7465e2d 100644 --- a/driver/src/main/scala/org/mongodb/scala/model/package.scala +++ b/driver/src/main/scala/org/mongodb/scala/model/package.scala @@ -79,22 +79,6 @@ package object model { def apply(): BucketOptions = new com.mongodb.client.model.BucketOptions() } - /** - * The options for a \$out aggregation pipeline stage - * - * @since 2.6 - */ - type AggregateOutStageOptions = com.mongodb.client.model.AggregateOutStageOptions - - /** - * The options for a \$out aggregation pipeline stage - * - * @since 2.6 - */ - object AggregateOutStageOptions { - def apply(): AggregateOutStageOptions = new com.mongodb.client.model.AggregateOutStageOptions() - } - /** * Granularity values for automatic bucketing. * diff --git a/driver/src/test/scala/org/mongodb/scala/model/AggregatesSpec.scala b/driver/src/test/scala/org/mongodb/scala/model/AggregatesSpec.scala index a58cbbbf..5b377737 100644 --- a/driver/src/test/scala/org/mongodb/scala/model/AggregatesSpec.scala +++ b/driver/src/test/scala/org/mongodb/scala/model/AggregatesSpec.scala @@ -200,9 +200,6 @@ class AggregatesSpec extends FlatSpec with Matchers { it should "render $out" in { toBson(out("authors")) should equal(Document("""{ $out : "authors" }""")) - toBson(out("authors", AggregateOutStageOptions().databaseName("foo"))) should equal( - Document("""{ $out : {mode: "replaceCollection", to: "authors", db: "foo" } }""") - ) } it should "render $group" in {