@@ -56,7 +56,7 @@ func SetInternalAggregateOptions(a *options.AggregateOptionsBuilder, key string,
5656 return typeErrFunc ("bool" )
5757 }
5858 a .Opts = append (a .Opts , func (opts * options.AggregateOptions ) error {
59- opts .CustomOptions = optionsutil .WithValue (opts .CustomOptions , key , b )
59+ opts .Internal = optionsutil .WithValue (opts .Internal , key , b )
6060 return nil
6161 })
6262 default :
@@ -77,7 +77,7 @@ func SetInternalCountOptions(a *options.CountOptionsBuilder, key string, option
7777 return typeErrFunc ("bool" )
7878 }
7979 a .Opts = append (a .Opts , func (opts * options.CountOptions ) error {
80- opts .CustomOptions = optionsutil .WithValue (opts .CustomOptions , key , b )
80+ opts .Internal = optionsutil .WithValue (opts .Internal , key , b )
8181 return nil
8282 })
8383 default :
@@ -98,7 +98,7 @@ func SetInternalDeleteOneOptions(a *options.DeleteOneOptionsBuilder, key string,
9898 return typeErrFunc ("bool" )
9999 }
100100 a .Opts = append (a .Opts , func (opts * options.DeleteOneOptions ) error {
101- opts .CustomOptions = optionsutil .WithValue (opts .CustomOptions , key , b )
101+ opts .Internal = optionsutil .WithValue (opts .Internal , key , b )
102102 return nil
103103 })
104104 default :
@@ -119,7 +119,7 @@ func SetInternalDeleteManyOptions(a *options.DeleteManyOptionsBuilder, key strin
119119 return typeErrFunc ("bool" )
120120 }
121121 a .Opts = append (a .Opts , func (opts * options.DeleteManyOptions ) error {
122- opts .CustomOptions = optionsutil .WithValue (opts .CustomOptions , key , b )
122+ opts .Internal = optionsutil .WithValue (opts .Internal , key , b )
123123 return nil
124124 })
125125 default :
@@ -140,7 +140,7 @@ func SetInternalDistinctOptions(a *options.DistinctOptionsBuilder, key string, o
140140 return typeErrFunc ("bool" )
141141 }
142142 a .Opts = append (a .Opts , func (opts * options.DistinctOptions ) error {
143- opts .CustomOptions = optionsutil .WithValue (opts .CustomOptions , key , b )
143+ opts .Internal = optionsutil .WithValue (opts .Internal , key , b )
144144 return nil
145145 })
146146 default :
@@ -161,7 +161,7 @@ func SetInternalEstimatedDocumentCountOptions(a *options.EstimatedDocumentCountO
161161 return typeErrFunc ("bool" )
162162 }
163163 a .Opts = append (a .Opts , func (opts * options.EstimatedDocumentCountOptions ) error {
164- opts .CustomOptions = optionsutil .WithValue (opts .CustomOptions , key , b )
164+ opts .Internal = optionsutil .WithValue (opts .Internal , key , b )
165165 return nil
166166 })
167167 default :
@@ -182,7 +182,7 @@ func SetInternalInsertManyOptions(a *options.InsertManyOptionsBuilder, key strin
182182 return typeErrFunc ("bool" )
183183 }
184184 a .Opts = append (a .Opts , func (opts * options.InsertManyOptions ) error {
185- opts .CustomOptions = optionsutil .WithValue (opts .CustomOptions , key , b )
185+ opts .Internal = optionsutil .WithValue (opts .Internal , key , b )
186186 return nil
187187 })
188188 default :
@@ -203,7 +203,7 @@ func SetInternalInsertOneOptions(a *options.InsertOneOptionsBuilder, key string,
203203 return typeErrFunc ("bool" )
204204 }
205205 a .Opts = append (a .Opts , func (opts * options.InsertOneOptions ) error {
206- opts .CustomOptions = optionsutil .WithValue (opts .CustomOptions , key , b )
206+ opts .Internal = optionsutil .WithValue (opts .Internal , key , b )
207207 return nil
208208 })
209209 default :
0 commit comments