Is mongodb able to set parameters for query timeout?

  mongodb, question

Can mongodb set the parameters of query timeout? I haven’t found a useful answer yet.

If it is inside the Shell, it should be specifiedcursor.maxTimeMS()Different drivers also have corresponding parameters. I don’t know what you are talking about.