The only thing that exists is the list of hooks:Hooks
Node.js based forum software built for the modern web - Hooks · NodeBB/NodeBB Wikifavicon
I'm trying to redesign mongodb database for better performance.
I didn't see a complete document at https://docs.nodebb.org/development/database-structure/ (for example there was no mention of documents for analytics).
if there is any document or guideline for mongodb queries and/or database design currently used in nodeBB it would speed up the process tremendously, if someone could share it.
I don't think there is any document like this, as even the current database structure docs page is fairly recent (It was created on 13th of June this year - commit history) and appears to not be finished yet.
So I guess reading the source code and asking questions here is your best bet for now