{"id":16387824,"url":"https://github.com/nicmeister/mongodb-node","last_synced_at":"2025-08-23T15:41:14.905Z","repository":{"id":102082487,"uuid":"234413162","full_name":"NicmeisteR/MongoDB-Node","owner":"NicmeisteR","description":null,"archived":false,"fork":false,"pushed_at":"2020-01-19T17:42:17.000Z","size":31,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-19T20:27:38.226Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/NicmeisteR.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,"zenodo":null}},"created_at":"2020-01-16T21:14:24.000Z","updated_at":"2020-01-19T17:42:19.000Z","dependencies_parsed_at":null,"dependency_job_id":"f3ec3eed-b88a-4526-8d0c-24a65440c962","html_url":"https://github.com/NicmeisteR/MongoDB-Node","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/NicmeisteR/MongoDB-Node","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NicmeisteR%2FMongoDB-Node","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NicmeisteR%2FMongoDB-Node/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NicmeisteR%2FMongoDB-Node/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NicmeisteR%2FMongoDB-Node/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NicmeisteR","download_url":"https://codeload.github.com/NicmeisteR/MongoDB-Node/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NicmeisteR%2FMongoDB-Node/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271754955,"owners_count":24815330,"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-08-23T02:00:09.327Z","response_time":69,"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":[],"created_at":"2024-10-11T04:27:37.930Z","updated_at":"2025-08-23T15:41:14.867Z","avatar_url":"https://github.com/NicmeisteR.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Node-TS-MongoDB\nNode TypeScript Base with MongoDB.\n\n# To-Do\n\n| Task                                                  | Status  | Endpoints\n| ----------------------------------------------------- |:------: |:-------------:|\n| Make an Express API that posts to MongoDB.            | [✅]    | /post |\n| Make an Express API that gets data from MongoDB.      | [✅]    | /get |\n| Make an Express API that deletes data from MongoDB.   | [✅]    | /delete |\n| Make an Express API that updates data from MongoDB.   | [✅]    | /update |\n| Add GraphQL.                                          | [🚧]    | /query |\n\n# Notes\n\nInsert:\n* db.collection.insertOne() New in version 3.2\n* db.collection.insertMany() New in version 3.2\n\nRead: \n* db.collection.find()\n    ```javascript\n    db.users.find(\n        { age: { $gt: 18 } },\n        { name: 1, address: 1 }\n    ).limit(5)\n    ```\n\nUpdate:\n* db.collection.updateOne() New in version 3.2\n* db.collection.updateMany() New in version 3.2\n* db.collection.replaceOne() New in version 3.2\n    ```javascript\n    db.users.updateMany(\n        { age: { $lt: 18 } },\n        { $set: { status: \"reject\" } }\n    )\n    ```\n\nDelete: \n* db.collection.deleteOne() New in version 3.2\n* db.collection.deleteMany() New in version 3.2\n    ```javascript\n    db.users.deleteMany(\n        { status: \"reject\" }\n    )\n    ```\n\nReference:\n* CRUD: https://docs.mongodb.com/manual/crud/\n* Insert: https://docs.mongodb.com/manual/tutorial/insert-documents/\n* Insert Methods: https://docs.mongodb.com/manual/reference/insert-methods/\n* Query: https://docs.mongodb.com/manual/tutorial/query-documents/\n* Update: https://docs.mongodb.com/manual/tutorial/update-documents/\n* Delete: https://docs.mongodb.com/manual/tutorial/remove-documents/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnicmeister%2Fmongodb-node","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnicmeister%2Fmongodb-node","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnicmeister%2Fmongodb-node/lists"}