diff --git a/mongo/options/aggregateoptions.go b/mongo/options/aggregateoptions.go index 47fd6ebdb7..6a8c26faab 100644 --- a/mongo/options/aggregateoptions.go +++ b/mongo/options/aggregateoptions.go @@ -44,8 +44,9 @@ type AggregateOptions struct { // This option is only valid for MongoDB versions >= 3.2 and is ignored for previous server versions. MaxAwaitTime *time.Duration - // A string that will be included in server logs, profiling logs, and currentOp queries to help trace the operation. - // The default is nil, which means that no comment will be included in the logs. + // A string or document that will be included in server logs, profiling logs, + // and currentOp queries to help trace the operation. The default is nil, + // which means that no comment will be included in the logs. Comment interface{} // The index to use for the aggregation. This should either be the index name as a string or the index specification diff --git a/mongo/options/changestreamoptions.go b/mongo/options/changestreamoptions.go index 101ca7a2b7..060226f955 100644 --- a/mongo/options/changestreamoptions.go +++ b/mongo/options/changestreamoptions.go @@ -23,8 +23,9 @@ type ChangeStreamOptions struct { // default value is nil, which means the default collation of the collection will be used. Collation *Collation - // A string that will be included in server logs, profiling logs, and currentOp queries to help trace the operation. - // The default is nil, which means that no comment will be included in the logs. + // A string or document that will be included in server logs, profiling logs, + // and currentOp queries to help trace the operation. The default is nil, + // which means that no comment will be included in the logs. Comment interface{} // Specifies how the updated document should be returned in change notifications for update operations. The default diff --git a/mongo/options/findoptions.go b/mongo/options/findoptions.go index 2dffec8deb..705fefc3f3 100644 --- a/mongo/options/findoptions.go +++ b/mongo/options/findoptions.go @@ -30,8 +30,9 @@ type FindOptions struct { // default value is nil, which means the default collation of the collection will be used. Collation *Collation - // A string that will be included in server logs, profiling logs, and currentOp queries to help trace the operation. - // The default is nil, which means that no comment will be included in the logs. + // A string or document that will be included in server logs, profiling logs, + // and currentOp queries to help trace the operation. The default is nil, + // which means that no comment will be included in the logs. Comment interface{} // CursorType specifies the type of cursor that should be created for the operation. The default is NonTailable, which @@ -233,8 +234,9 @@ type FindOneOptions struct { // default value is nil, which means the default collation of the collection will be used. Collation *Collation - // A string that will be included in server logs, profiling logs, and currentOp queries to help trace the operation. - // The default is nil, which means that no comment will be included in the logs. + // A string or document that will be included in server logs, profiling logs, + // and currentOp queries to help trace the operation. The default is nil, + // which means that no comment will be included in the logs. Comment interface{} // The index to use for the aggregation. This should either be the index name as a string or the index specification