Skip to content

Commit 2caceb3

Browse files
committed
pr
1 parent ac89f39 commit 2caceb3

2 files changed

Lines changed: 2 additions & 5 deletions

File tree

src/MongoDB.Driver/Linq/Linq3Implementation/Ast/Expressions/AstCreateObjectIdExpression.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,5 @@ public override AstNode Accept(AstNodeVisitor visitor) =>
2626
visitor.VisitCreateObjectIdExpression(this);
2727

2828
public override BsonValue Render() =>
29-
new BsonDocument
30-
{
31-
{ "$createObjectId", new BsonDocument() }
32-
};
29+
new BsonDocument("$createObjectId", new BsonDocument());
3330
}

src/MongoDB.Driver/Mql.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public static TTo Convert<TFrom, TTo>(TFrom value, ConvertOptions<TTo> options)
6565
}
6666

6767
/// <summary>
68-
/// Represents the creation of a new ObjectId, translates to $createObjectId in MQL.
68+
/// Creates a new unique ObjectId using the $createObjectId aggregation operator.
6969
/// </summary>
7070
/// <returns>A ObjectId.</returns>
7171
public static ObjectId CreateObjectId() =>

0 commit comments

Comments
 (0)