Making category wwith Yii2 and mongodb

I do not know how to creat a nested set behaviour category with MongoDB. Anybody has done this please help me on how to make it. Thank in advanced

By "nested set behavior" are you referring to extending yii\base\Behavior and attaching it to a component, e.g., one that extends Active Record? If so, I cannot help. If, however, you are simply asking about how to create, read, update and delete nested structures using the MongoDB extension, I might be able to offer a few suggestions.