Any quoata or limit definitions per database usage at mongodb or related solution?

I am wondering whether people are using any prevention at MongoDB side for any applications that may have the risk of making stupid queries that may cause MongoDB ram/cpu usage increase and cause other apps fail or slow down at their daily routines?

I don’t recall mongodb has built-in support for such prevention (e.g. user quota), you may have to create your own.

Is there any documentation for it or some tips?