{"id":13800756,"url":"https://github.com/yooneskh/yongo","last_synced_at":"2025-08-16T04:31:14.956Z","repository":{"id":57675528,"uuid":"379362284","full_name":"yooneskh/yongo","owner":"yooneskh","description":"Minimal MongoDB for Deno","archived":false,"fork":false,"pushed_at":"2024-07-08T09:51:13.000Z","size":29,"stargazers_count":7,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-11-18T15:54:55.258Z","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/yooneskh.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-06-22T18:15:24.000Z","updated_at":"2024-07-08T09:50:35.000Z","dependencies_parsed_at":"2024-01-05T20:59:59.886Z","dependency_job_id":"279da033-742f-4f92-9882-3c5b589be9a9","html_url":"https://github.com/yooneskh/yongo","commit_stats":{"total_commits":30,"total_committers":1,"mean_commits":30.0,"dds":0.0,"last_synced_commit":"855e10359fe09c8612b58a87a7ee05bac6f3551b"},"previous_names":[],"tags_count":24,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yooneskh%2Fyongo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yooneskh%2Fyongo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yooneskh%2Fyongo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yooneskh%2Fyongo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yooneskh","download_url":"https://codeload.github.com/yooneskh/yongo/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230004734,"owners_count":18158351,"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":"2024-08-04T00:01:15.980Z","updated_at":"2024-12-16T17:50:17.342Z","avatar_url":"https://github.com/yooneskh.png","language":"TypeScript","funding_links":[],"categories":["Modules"],"sub_categories":["Database"],"readme":"# Yongo\n\nThis project aims to be a very simple wrapper around deno_mongo driver for MongoDB database. Yongo is inspired by Mongoose in Node.js but will not try to implement all of its functionality.\n\n## Installation\n\nYongo is hosted at \u003chttps://deno.land/x/yongo\u003e\n\n## Usage\n\nExample usage is in `./examples` folder and is updated regularly to include every aspect.\n\nYongo works like this:\n\n```typescript\nimport { connect, Query } from 'https://deno.land/x/yongo@LATEST_VERSION/mod.ts';\n\nawait connect('mongo://host:port/dbname');\n\n\nconst query = new Query\u003cinterface\u003e('collection');\n\nquery.where({ filter object });\n\nquery.projectIn('name');\nquery.projectOut('lastName');\n\nquery.sort({ sort object });\n\nquery.populate({ path: 'owner', collection: 'users' });\n\nawait query.query();\nawait query.queryOne();\nawait query.count();\n\n// to create\n\nconst query = new Query\u003cinterface\u003e('collection');\n\nquery.put('name', 'Yoones');\nquery.put('lastName', 'Khoshghadam');\n\nconst insertedDocument = await query.insert();\n\n// to change\n\nconst query = new Query\u003cinterface\u003e('collection');\n\nquery.where({ name: 'Yoones' });\nquery.put('age', 26);\n\nawait query.commit();\nawait query.commitMany();\n\nawait query.delete();\nawait query.deleteMany();\n```\n\n## Licensce\n\nFree For All!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyooneskh%2Fyongo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyooneskh%2Fyongo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyooneskh%2Fyongo/lists"}