Mongochrome
Mongochrome is a simple and fast MongoDB wrapper that cached it's data, so that you don't need to always fetch it from the server! Also this package is super beginner friendly.
[Notice] This package is inspired from Quickmongo package, so that you'll find it's similar in some way.
[IMPORTANT] Since this package is new, some features may be bugging, feel free to ask me if you have any question or if you found any bug!
Links
- Documentation: mongochrome.my.id
- Discord Support Server: discord.gg/7z4CwpMF4w
- NPM PACKAGE: npmjs.com/package/mongochrome
- Github: github.com/raflymln/mongochrome
- Bug Report: github.com/raflymln/mongochrome/issues
Contribution
If you have any contributions, feel free to do a pull request against the master branch on Mongochrome github pages! I'll try to read on every pull request and accept it if it's good enough.
Features
- Asynchronous
- Cached its Data
- Beginner Friendly
- Somewhat similar to Quickmongo / Quick.db
- Easy to use
Installation
npm install mongochrome
Usage Example
const Mongochrome = require('mongochrome');
const db = Mongochrome.Connect(url, connectOptions, options);
//This Function is Calling Database Class by Default
db(collectionName);
// Setting Up a Single Object
db("character").set("user1", { stamina: {...} })
// Setting Up an Object in Object Value
db("character").set("user1.level", "5")
// Automatically create an array if data doesn't available before
db("character").push("list", ["char1", "char2"])
// You can also push directly into an Object
db("character").push("user1.items", ["sword", "banana"])
// Getting Full Data
db("items").get("sword")
// Getting an Object on Data
db("items").get("sword.level")
// Get All Collection Data
db("users").data