{"id":20746977,"url":"https://github.com/giscafer/mongo-js","last_synced_at":"2026-05-05T10:31:28.091Z","repository":{"id":94680537,"uuid":"138241907","full_name":"giscafer/mongo-js","owner":"giscafer","description":"node.js 批量操作 mongodb 数据库脚本","archived":false,"fork":false,"pushed_at":"2018-06-22T02:05:49.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-11T13:40:50.105Z","etag":null,"topics":["mongo","mongodb","mongose","nodejs"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/giscafer.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-06-22T01:53:46.000Z","updated_at":"2018-06-24T17:08:45.000Z","dependencies_parsed_at":"2023-03-02T23:30:21.754Z","dependency_job_id":null,"html_url":"https://github.com/giscafer/mongo-js","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/giscafer/mongo-js","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/giscafer%2Fmongo-js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/giscafer%2Fmongo-js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/giscafer%2Fmongo-js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/giscafer%2Fmongo-js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/giscafer","download_url":"https://codeload.github.com/giscafer/mongo-js/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/giscafer%2Fmongo-js/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":27762493,"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","status":"online","status_checked_at":"2025-12-16T02:00:10.477Z","response_time":57,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["mongo","mongodb","mongose","nodejs"],"created_at":"2024-11-17T08:10:05.485Z","updated_at":"2025-12-16T09:53:03.957Z","avatar_url":"https://github.com/giscafer.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# mongo-js\n\nmongodb操作数据库 demo，含批量操作修改mongodb数据库脚本demo`\n\n- DEMO1——`mongodb` 目录：使用 mongodb 中间件操作 （不定义schema的时候推荐此方式）\n- DEMO2——`mongoose` 目录：使用 mongoose 中间件操作 （需要定义schema才能使用，无完整schema时建议使用demo1方式）\n- DEMO3——`mongodbBatch` 目录：使用 mongodb 中间件操作 ，批量更新操作，异步统计完成和失败记录情况和总用时。\n\n## usage\n\n- npm install\n- 执行 mongodb demo : `node ./mongodb/connect.js` 或可以直接执行：`node index.js`\n- 执行 mongoose demo : `node ./mongoose/index.js`\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgiscafer%2Fmongo-js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgiscafer%2Fmongo-js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgiscafer%2Fmongo-js/lists"}