sequelize-nested-set
sequelize-nested-set copied to clipboard
Library to store and manage nested set trees using Sequelize
Now we have a lof of examples for exact functions, but not the main "quick start" example that shows the code, that works out-of-the-box. So I suggest to add a...
As example I'm trying to create `Tag` nested set with tree structure like this: ``` Electronics - TVs - - Apple - - Samsung - Phones - - Xiaomi ```...
Here is the full list of functions: - [x] createRoot - [x] fetchRoot - [x] fetchTree - [x] fetchRoots - [x] hasPrevSibling - [x] hasNextSibling - [x] hasChildren - [x]...
I use fake data to generate about 10 root menu and about 100 menu. I have simple test unit with fake data: ```js const tree = await Menu.fetchTree(0, rootId, {...
Here is the full list of functions: - [ ] createRoot - [ ] fetchRoot - [ ] fetchTree - [ ] fetchRoots - [ ] hasPrevSibling - [ ]...
Actually we need rootId param only for multi-root trees. Here is a list of API functions with the issue: - Model.fetchRoot = async function (rootId = 1, options = {})...
Here is the full list of functions: - [ ] createRoot - [ ] fetchRoot - [ ] fetchTree - [ ] fetchRoots - [ ] hasPrevSibling - [ ]...
Move private functions to a separate file and restrict access to them.