@@ -12,6 +12,7 @@ package options
1212// See corresponding setter methods for documentation.
1313type CreateIndexesOptions struct {
1414 CommitQuorum interface {}
15+ RawData * bool
1516}
1617
1718// CreateIndexesOptionsBuilder contains options to create indexes. Each option
@@ -119,9 +120,23 @@ func (c *CreateIndexesOptionsBuilder) SetCommitQuorumVotingMembers() *CreateInde
119120 return c
120121}
121122
123+ // SetRawData sets the value for the RawData field. If true, it allows the CRUD operations to access timeseries
124+ // collections on the bucket-level. This option is only valid for MongoDB versions >= 9.0. The default value is false.
125+ func (c * CreateIndexesOptionsBuilder ) SetRawData (rawData bool ) * CreateIndexesOptionsBuilder {
126+ c .Opts = append (c .Opts , func (opts * CreateIndexesOptions ) error {
127+ opts .RawData = & rawData
128+
129+ return nil
130+ })
131+
132+ return c
133+ }
134+
122135// DropIndexesOptions represents arguments that can be used to configure
123136// IndexView.DropOne and IndexView.DropAll operations.
124- type DropIndexesOptions struct {}
137+ type DropIndexesOptions struct {
138+ RawData * bool
139+ }
125140
126141// DropIndexesOptionsBuilder contains options to configure dropping indexes.
127142// Each option can be set through setter functions. See documentation for each
@@ -140,12 +155,25 @@ func (d *DropIndexesOptionsBuilder) List() []func(*DropIndexesOptions) error {
140155 return d .Opts
141156}
142157
158+ // SetRawData sets the value for the RawData field. If true, it allows the CRUD operations to access timeseries
159+ // collections on the bucket-level. This option is only valid for MongoDB versions >= 9.0. The default value is false.
160+ func (d * DropIndexesOptionsBuilder ) SetRawData (rawData bool ) * DropIndexesOptionsBuilder {
161+ d .Opts = append (d .Opts , func (opts * DropIndexesOptions ) error {
162+ opts .RawData = & rawData
163+
164+ return nil
165+ })
166+
167+ return d
168+ }
169+
143170// ListIndexesOptions represents arguments that can be used to configure an
144171// IndexView.List operation.
145172//
146173// See corresponding setter methods for documentation.
147174type ListIndexesOptions struct {
148175 BatchSize * int32
176+ RawData * bool
149177}
150178
151179// ListIndexesOptionsBuilder contains options to configure count operations. Each
@@ -177,6 +205,18 @@ func (l *ListIndexesOptionsBuilder) SetBatchSize(i int32) *ListIndexesOptionsBui
177205 return l
178206}
179207
208+ // SetRawData sets the value for the RawData field. If true, it allows the CRUD operations to access timeseries
209+ // collections on the bucket-level. This option is only valid for MongoDB versions >= 9.0. The default value is false.
210+ func (l * ListIndexesOptionsBuilder ) SetRawData (rawData bool ) * ListIndexesOptionsBuilder {
211+ l .Opts = append (l .Opts , func (opts * ListIndexesOptions ) error {
212+ opts .RawData = & rawData
213+
214+ return nil
215+ })
216+
217+ return l
218+ }
219+
180220// IndexOptions represents arguments that can be used to configure a new index
181221// created through the IndexView.CreateOne or IndexView.CreateMany operations.
182222//
0 commit comments