We have a library which takes in Query as the input parameter.
1. In the application, they set following on query object
query.order(sortyBy)
2. Library gets the query object and internally based on configuration needs to set
maxTime
readPreference
Query itself does not have setters for this, which means have to create new options object in step 2 and the values set in step 1 is lost.
Instead if i get the options from step 1 and then add other options in step 2, that would work.
But how do i get the options from query object?
Thanks in advance.