{"id":21145345,"url":"https://github.com/jsa2/mongodbpools","last_synced_at":"2025-08-31T04:07:21.015Z","repository":{"id":103264533,"uuid":"413164992","full_name":"jsa2/mongodbpools","owner":"jsa2","description":null,"archived":false,"fork":false,"pushed_at":"2021-10-03T18:39:00.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-14T13:43:09.311Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/jsa2.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":"2021-10-03T18:37:03.000Z","updated_at":"2021-10-03T18:39:03.000Z","dependencies_parsed_at":null,"dependency_job_id":"267ec0a8-35bc-41ff-bd95-d8bbd59dd325","html_url":"https://github.com/jsa2/mongodbpools","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jsa2/mongodbpools","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsa2%2Fmongodbpools","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsa2%2Fmongodbpools/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsa2%2Fmongodbpools/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsa2%2Fmongodbpools/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jsa2","download_url":"https://codeload.github.com/jsa2/mongodbpools/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsa2%2Fmongodbpools/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272936432,"owners_count":25018163,"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-31T02:00:09.071Z","response_time":79,"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-11-20T08:39:37.400Z","updated_at":"2025-08-31T04:07:20.964Z","avatar_url":"https://github.com/jsa2.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Readme\nTesting reusing of connections in MongoDb\n- https://stackoverflow.com/a/46871946\nBased on various examples at \n- https://stackoverflow.com/questions/10656574/how-do-i-manage-mongodb-connections-in-a-node-js-web-application\n\n### Setup\n1. Database users\n2. Collection persons\n3. add connectionstring to src/cfg.json\n   ```json\n   {\"uri\":\"mongodb://...\"}\n   ``` \n\n### Test\n```powershell\nInvoke-RestMethod yourhost.com/persons -Method Post -UseBasicParsing -Body '{\"uid\":12}' -ContentType application/json\n\nInvoke-RestMethod yourhost.com/persons -Method Post -UseBasicParsing -Body '{\"uid\":12}' -ContentType application/json\n\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjsa2%2Fmongodbpools","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjsa2%2Fmongodbpools","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjsa2%2Fmongodbpools/lists"}