{"id":28466315,"url":"https://github.com/iolo/node-mango","last_synced_at":"2025-06-29T21:32:34.628Z","repository":{"id":8180336,"uuid":"9605590","full_name":"iolo/node-mango","owner":"iolo","description":"**DEPRECATED*** simple mongodb wrapper library for nodejs","archived":false,"fork":false,"pushed_at":"2014-11-27T01:18:15.000Z","size":184,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-07T06:08:52.738Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"ros-planning/moveit_core","license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/iolo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-04-22T18:16:50.000Z","updated_at":"2014-11-27T01:18:16.000Z","dependencies_parsed_at":"2022-09-03T21:12:56.844Z","dependency_job_id":null,"html_url":"https://github.com/iolo/node-mango","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/iolo/node-mango","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iolo%2Fnode-mango","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iolo%2Fnode-mango/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iolo%2Fnode-mango/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iolo%2Fnode-mango/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/iolo","download_url":"https://codeload.github.com/iolo/node-mango/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iolo%2Fnode-mango/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262671712,"owners_count":23346456,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-06-07T06:08:54.348Z","updated_at":"2025-06-29T21:32:34.621Z","avatar_url":"https://github.com/iolo.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"DEPRECATION NOTICE\n==================\n\nThis project is abandoned.\n\nnode-mango\n==========\n\nsimple mongodb wrapper library for nodejs\n\nFeatures\n--------\n\n* promise-returning wrapper methods for all mongodb collection methods.\n* DAO-like methods: createNew/load/store/destroy/all\n* embedded fields helper methods: getField/setField/removeField/loadField/...\n* embedded array fields helper methods: addElement/addElements/removeElement/removeElements/hasElemnt/hasSomeElements/hasAllElements\n* embedded object fields helper methods: getProperty/setProperty/incProperty/removeProperty\n* document level cache with memory, redis or something(**EXPREIMENTAL**)\n\nGetting Started\n---------------\n\ninstall module using npm:\n\n```\nnpm install mango\n```\n\nprepare configuration:\n\n```javascript\nvar config = {\n  test: {\n    mongo: {\n      url: 'mongodb://localhost/test',\n      options: {\n      }\n    },\n    mango: {\n      collections: {\n        users: {\n        },\n        posts: {\n        },\n        tags: {\n        }\n      }\n    }\n  }\n};\n```\n\nconfigure mango with configuration:\n\n```javascript\nvar mango = require('mango').configure(config);\n```\n\nor, configure it later, if you want:\n\n```javascript\nvar mango = require('mango');\n...\nmango.configure('mongodb://localhost/test');\n```\n\nalternatively, connect directly if you need a single db connection:\n\n```javascript\nvar mango = require('mango');\nmango.connect('mongodb://localhost/test').then(function(testDb) {\n  ... // NOTE: testDb is not mongodb.Db instance but mango.MangoDb instance\n}).done();\n```\n\nexecute queries using promise:\n\n```javascript\nmango.test.users.findOne({name: 'foo'});\n  .then(function (result) {\n  })\n  .fail(function (err) {\n  })\n  .done();\n```\n\nConfiguration\n-------------\n\n**TBW**\n\nCache\n-----\n\n**TBW**\n\nAPI Reference\n-------------\n\nto generate api reference:\n\n```\ngrunt jsdoc\n```\n\nto browse api reference:\n\n```\nopen docs/index.html\n```\n\nDependencies\n------------\n\n* [node-mongodb-native](https://github.com/mongodb/node-mongodb-native)\n* [underscore](http://underscorejs.org)\n* [q](http://documentup.com/kriskowal/q/)\n* and optional and test dependencies...\n\nNotes\n-----\n\nplz, see source code in ```libs``` directory and test code in ```tests``` directory until documents are available ;).\n\n*May the source be with you...*\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiolo%2Fnode-mango","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fiolo%2Fnode-mango","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiolo%2Fnode-mango/lists"}