Skip to main content

Insert Category

Log into mongodb

mongosh mongodb://<username>:<password>@localhost:30000/metahkg

Check for categories

db.category.find().pretty()

Use an id that does not exist yet in the next step.

Insert

Normal

db.category.insertOne({ id: <newid>, name: "<new-category-name>" })

Hidden

db.category.insertOne({ id: <newid>, name: "<new-category-name>", hidden: true })

Refresh the app and you should now see the new category in the sidebar.