@@ -70,12 +70,13 @@ func (dom *DeleteOneModel) SetCollation(collation *options.Collation) *DeleteOne
7070 return dom
7171}
7272
73- // SetHint specifies the index to use for the operation. This should either be the index name as a string or the index
74- // specification as a document. This option is only valid for MongoDB versions >= 4.4. Server versions >= 3.4 will
75- // return an error if this option is specified. For server versions < 3.4, the driver will return a client-side error if
76- // this option is specified. The driver will return an error if this option is specified during an unacknowledged write
77- // operation. The driver will return an error if the hint parameter is a multi-key map. The default value is nil, which
78- // means that no hint will be sent.
73+ // SetHint specifies the index to use for the operation. This should either be
74+ // the index name as a string or the index specification as a document. This
75+ // option is only valid for MongoDB versions >= 4.4. Server versions < 4.4 will
76+ // return an error if this option is specified. The driver will return an error
77+ // if this option is specified during an unacknowledged write operation. The
78+ // driver will return an error if the hint parameter is a multi-key map. The
79+ // default value is nil, which means that no hint will be sent.
7980func (dom * DeleteOneModel ) SetHint (hint interface {}) * DeleteOneModel {
8081 dom .Hint = hint
8182 return dom
@@ -111,12 +112,13 @@ func (dmm *DeleteManyModel) SetCollation(collation *options.Collation) *DeleteMa
111112 return dmm
112113}
113114
114- // SetHint specifies the index to use for the operation. This should either be the index name as a string or the index
115- // specification as a document. This option is only valid for MongoDB versions >= 4.4. Server versions >= 3.4 will
116- // return an error if this option is specified. For server versions < 3.4, the driver will return a client-side error if
117- // this option is specified. The driver will return an error if this option is specified during an unacknowledged write
118- // operation. The driver will return an error if the hint parameter is a multi-key map. The default value is nil, which
119- // means that no hint will be sent.
115+ // SetHint specifies the index to use for the operation. This should either be
116+ // the index name as a string or the index specification as a document. This
117+ // option is only valid for MongoDB versions >= 4.4. Server versions < 4.4 will
118+ // return an error if this option is specified. The driver will return an error
119+ // if this option is specified during an unacknowledged write operation. The
120+ // driver will return an error if the hint parameter is a multi-key map. The
121+ // default value is nil, which means that no hint will be sent.
120122func (dmm * DeleteManyModel ) SetHint (hint interface {}) * DeleteManyModel {
121123 dmm .Hint = hint
122124 return dmm
@@ -141,12 +143,13 @@ func NewReplaceOneModel() *ReplaceOneModel {
141143 return & ReplaceOneModel {}
142144}
143145
144- // SetHint specifies the index to use for the operation. This should either be the index name as a string or the index
145- // specification as a document. This option is only valid for MongoDB versions >= 4.2. Server versions >= 3.4 will
146- // return an error if this option is specified. For server versions < 3.4, the driver will return a client-side error if
147- // this option is specified. The driver will return an error if this option is specified during an unacknowledged write
148- // operation. The driver will return an error if the hint parameter is a multi-key map. The default value is nil, which
149- // means that no hint will be sent.
146+ // SetHint specifies the index to use for the operation. This should either be
147+ // the index name as a string or the index specification as a document. This
148+ // option is only valid for MongoDB versions >= 4.2. Server versions < 4.2 will
149+ // return an error if this option is specified. The driver will return an error
150+ // if this option is specified during an unacknowledged write operation. The
151+ // driver will return an error if the hint parameter is a multi-key map. The
152+ // default value is nil, which means that no hint will be sent.
150153func (rom * ReplaceOneModel ) SetHint (hint interface {}) * ReplaceOneModel {
151154 rom .Hint = hint
152155 return rom
@@ -210,12 +213,13 @@ func NewUpdateOneModel() *UpdateOneModel {
210213 return & UpdateOneModel {}
211214}
212215
213- // SetHint specifies the index to use for the operation. This should either be the index name as a string or the index
214- // specification as a document. This option is only valid for MongoDB versions >= 4.2. Server versions >= 3.4 will
215- // return an error if this option is specified. For server versions < 3.4, the driver will return a client-side error if
216- // this option is specified. The driver will return an error if this option is specified during an unacknowledged write
217- // operation. The driver will return an error if the hint parameter is a multi-key map. The default value is nil, which
218- // means that no hint will be sent.
216+ // SetHint specifies the index to use for the operation. This should either be
217+ // the index name as a string or the index specification as a document. This
218+ // option is only valid for MongoDB versions >= 4.2. Server versions < 4.2 will
219+ // return an error if this option is specified. The driver will return an error
220+ // if this option is specified during an unacknowledged write operation. The
221+ // driver will return an error if the hint parameter is a multi-key map. The
222+ // default value is nil, which means that no hint will be sent.
219223func (uom * UpdateOneModel ) SetHint (hint interface {}) * UpdateOneModel {
220224 uom .Hint = hint
221225 return uom
@@ -285,12 +289,13 @@ func NewUpdateManyModel() *UpdateManyModel {
285289 return & UpdateManyModel {}
286290}
287291
288- // SetHint specifies the index to use for the operation. This should either be the index name as a string or the index
289- // specification as a document. This option is only valid for MongoDB versions >= 4.2. Server versions >= 3.4 will
290- // return an error if this option is specified. For server versions < 3.4, the driver will return a client-side error if
291- // this option is specified. The driver will return an error if this option is specified during an unacknowledged write
292- // operation. The driver will return an error if the hint parameter is a multi-key map. The default value is nil, which
293- // means that no hint will be sent.
292+ // SetHint specifies the index to use for the operation. This should either be
293+ // the index name as a string or the index specification as a document. This
294+ // option is only valid for MongoDB versions >= 4.2. Server versions < 4.2 will
295+ // return an error if this option is specified. The driver will return an error
296+ // if this option is specified during an unacknowledged write operation. The
297+ // driver will return an error if the hint parameter is a multi-key map. The
298+ // default value is nil, which means that no hint will be sent.
294299func (umm * UpdateManyModel ) SetHint (hint interface {}) * UpdateManyModel {
295300 umm .Hint = hint
296301 return umm
0 commit comments