File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -16,8 +16,8 @@ def delete
1616 @api_call . delete ( endpoint_path )
1717 end
1818
19- def update ( partial_document , query_parameters = { } )
20- @api_call . patch ( endpoint_path , partial_document , query_parameters )
19+ def update ( partial_document , options = { } )
20+ @api_call . patch ( endpoint_path , partial_document , options )
2121 end
2222
2323 private
Original file line number Diff line number Diff line change @@ -16,12 +16,12 @@ def create(document)
1616 @api_call . post ( endpoint_path , document )
1717 end
1818
19- def upsert ( document , query_parameters = { } )
20- @api_call . post ( endpoint_path , document , query_parameters . merge ( action : :upsert ) )
19+ def upsert ( document , options = { } )
20+ @api_call . post ( endpoint_path , document , options . merge ( action : :upsert ) )
2121 end
2222
2323 def update ( document , query_parameters = { } )
24- @api_call . post ( endpoint_path , document , query_parameters . merge ( action : :update ) )
24+ @api_call . post ( endpoint_path , document , options . merge ( action : :update ) )
2525 end
2626
2727 def create_many ( documents , options = { } )
You can’t perform that action at this time.
0 commit comments