Hello, everyone.
I am new here, but I am very interesting in NodeBB.
I want to create the new theme but I don't know how to create it.
Please teach me step by step.
Thank you for your time.
Apex
add new collections or mantain one collection
-
Exploring the source code of nodebb I noticed how mongodb uses only one collection ('objects') for each document. I have already read the reason for this choice, (it was decided to start with another database).
But i would like to create a payment plugin that uses a different collection. Is it ok or is it better to follow the default setting? -
If you decide to use a separate collection you won't be able to use the built in
db.*
methods since they all write to theobjects
collection. Thedb
object exposes the underlying database client indb.client
so you can use that to directly write to mongodb and use a separate collection.Keep in mind if you do this your plugin won't work on nodebb forums that are using redis or psql.
db.setObject
does something different on all 3 databases.