{"id":23252222,"url":"https://github.com/findingtheconcept/kindagoose","last_synced_at":"2025-08-20T10:31:48.057Z","repository":{"id":50933324,"uuid":"513318669","full_name":"findingtheconcept/kindagoose","owner":"findingtheconcept","description":"Typegoose integration with NestJS!","archived":false,"fork":false,"pushed_at":"2024-07-15T07:49:42.000Z","size":438,"stargazers_count":27,"open_issues_count":6,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-12-15T05:14:04.805Z","etag":null,"topics":["hacktoberfest","mongodb","mongoose","nest","nestjs","typegoose","typescript"],"latest_commit_sha":null,"homepage":"https://grapeoffjs.github.io/kindagoose/#/","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/findingtheconcept.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","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},"funding":{"patreon":"user?u=77795275","custom":["https://donate.stream/donate_62eaa193a0e75","https://donatty.com/grapeoff","https://boosty.to/grapeoff"]}},"created_at":"2022-07-12T23:21:34.000Z","updated_at":"2024-09-26T04:21:14.000Z","dependencies_parsed_at":"2024-07-15T09:13:54.229Z","dependency_job_id":null,"html_url":"https://github.com/findingtheconcept/kindagoose","commit_stats":{"total_commits":192,"total_committers":3,"mean_commits":64.0,"dds":0.07291666666666663,"last_synced_commit":"7fa9dbe77402ff916b602c9e1dc577afb9c29718"},"previous_names":["findingtheconcept/kindagoose","grapeoffjs/kindagoose"],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/findingtheconcept%2Fkindagoose","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/findingtheconcept%2Fkindagoose/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/findingtheconcept%2Fkindagoose/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/findingtheconcept%2Fkindagoose/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/findingtheconcept","download_url":"https://codeload.github.com/findingtheconcept/kindagoose/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230415317,"owners_count":18222158,"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":["hacktoberfest","mongodb","mongoose","nest","nestjs","typegoose","typescript"],"created_at":"2024-12-19T10:09:09.341Z","updated_at":"2024-12-19T10:09:10.949Z","avatar_url":"https://github.com/findingtheconcept.png","language":"TypeScript","funding_links":["https://patreon.com/user?u=77795275","https://donate.stream/donate_62eaa193a0e75","https://donatty.com/grapeoff","https://boosty.to/grapeoff"],"categories":[],"sub_categories":[],"readme":"# Kindagoose\n\nFresh NestJS wrapper for Typegoose that solves the main drawback\nof [nestjs-typegoose](https://github.com/kpfromer/nestjs-typegoose)\n\n[![GPLv3 License](https://img.shields.io/badge/License-GPL%20v3-yellow.svg)](https://github.com/GrapeoffJS/kindagoose/blob/master/README.md)\n[![Link to NPM](https://img.shields.io/badge/npm-kindagoose-red)](https://www.npmjs.com/package/kindagoose)\n\n## Authors\n\n- [@Dmitriy Grape](https://github.com/GrapeoffJS)\n- [@BackOnTrack](https://github.com/BackOnTrackgithub)\n\n## Support\n\nFor support, email me grapeoff.official@gmail.com or write an issue straight in kindagoose repository!\n\n## Installation\n\nTo install `kindagoose`, you need to execute one of these simple commands:\n\n#### NPM\n\n```shell\n$ npm i kindagoose @typegoose/typegoose mongoose\n```\n\n#### Yarn\n\n```shell\n$ yarn add kindagoose @typegoose/typegoose mongoose\n```\n\n## Documentation\n\n[Full documentation is available here!](https://grapeoffjs.github.io/kindagoose)\n\n## Usage\n\n#### Define a schema\n\n```typescript\n@modelOptions({ schemaOptions: { collection: 'Users' } })\nexport class User extends TimeStamps {\n  @prop({ unique: true })\n  login: string;\n\n  @prop()\n  firstName: string;\n\n  @prop()\n  lastName: string;\n\n  @prop({ type: () =\u003e Date })\n  age: Date;\n\n  @prop()\n  password: string;\n\n  @prop({ type: () =\u003e [Task], localField: '_id', foreignField: 'owner_id' })\n  tasks: Ref\u003cTask\u003e[];\n}\n```\n\n#### Register your schema like this\n\n```typescript\n@Module({\n  imports: [\n    KindagooseModule.forFeature([\n      User,\n    ]),\n  ],\n  controllers: [],\n  providers: [UsersService],\n})\nexport class UsersModule {}\n```\n\n#### Use it wherever within the module\n\n```typescript\nimport { InjectModel } from \"kindagoose\";\nimport { ReturnModelType } from \"@typegoose/typegoose\";\n\n@Injectable()\nexport class UsersService {\n  constructor(\n      @InjectModel(User)\n      private readonly userModel: ReturnModelType\u003ctypeof User\u003e,\n  ) {}\n\n  async create(createUserDto: CreateUserDto) {\n    return this.userModel.create(createUserDto);\n  }\n\n  async get({ limit, offset }: PaginationDto) {\n    return this.userModel.find().skip(offset).limit(limit).exec();\n  }\n\n  async getById(id: string) {\n    return this.userModel.findById(id).exec();\n  }\n}\n```\n\n## License\n\n[GPL 3.0](https://github.com/GrapeoffJS/kindagoose/blob/master/LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffindingtheconcept%2Fkindagoose","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffindingtheconcept%2Fkindagoose","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffindingtheconcept%2Fkindagoose/lists"}