Strict Query Behavior for non default connections. #14356
Unanswered
pritchardtw
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
As I understand there is a mongoose default connection and then we can also create a non default connection and register models on the non default connection.
When configuration mongoose setttings via
mongoose.set('strictQuery', false);
, does that apply to all connections, or just the mongoose default connection? Do I have tononDefaultConn.set( 'strictQuery': false)
explicitly on non default conns to get that behavior?I know I can set
maxTimeMS
onmongoose
and on the non default connections as that is documented, the strictQuery behavior on default connection vs non default is a bit ambiguous to me.Thanks for the considerations.
Beta Was this translation helpful? Give feedback.
All reactions