Answer the question
In order to leave comments, you need to log in
Is field dependency possible in mongodb?
There is a user model with a block of his experience (xp)
...
stats : {
...
xp: { type: Number, default: 0 }
},
...
Answer the question
In order to leave comments, you need to log in
On the server where the function changes xp, let the level be calculated and written to the base with the same update, for the event - immediately check if the level has changed and do something, for example, send a message to the client.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question