{"id":16802183,"url":"https://github.com/kamikazechaser/fastify-objectionjs-classes","last_synced_at":"2025-04-11T00:41:56.568Z","repository":{"id":42871145,"uuid":"256140606","full_name":"kamikazechaser/fastify-objectionjs-classes","owner":"kamikazechaser","description":"Objection.js plugin for Fastify with classes cherry-picking support","archived":false,"fork":false,"pushed_at":"2023-01-06T17:54:59.000Z","size":512,"stargazers_count":2,"open_issues_count":15,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-24T21:22:42.706Z","etag":null,"topics":["fastify","objectionjs"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kamikazechaser.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-04-16T07:24:57.000Z","updated_at":"2023-03-04T10:48:24.000Z","dependencies_parsed_at":"2023-02-06T07:32:57.111Z","dependency_job_id":null,"html_url":"https://github.com/kamikazechaser/fastify-objectionjs-classes","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kamikazechaser%2Ffastify-objectionjs-classes","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kamikazechaser%2Ffastify-objectionjs-classes/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kamikazechaser%2Ffastify-objectionjs-classes/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kamikazechaser%2Ffastify-objectionjs-classes/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kamikazechaser","download_url":"https://codeload.github.com/kamikazechaser/fastify-objectionjs-classes/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248166882,"owners_count":21058479,"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":["fastify","objectionjs"],"created_at":"2024-10-13T09:38:54.621Z","updated_at":"2025-04-11T00:41:56.553Z","avatar_url":"https://github.com/kamikazechaser.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# fastify-objectionjs-classes\n\n![Node.js CI](https://github.com/kamikazechaser/fastify-objectionjs-classes/workflows/Node.js%20CI/badge.svg)\n![npm](https://img.shields.io/npm/dt/fastify-objectionjs-classes)\n\nCherry-pick Objection.js classes for Fastify, complements [fastify-objectionjs](https://github.com/jarcodallo/fastify-objectionjs). This allows you to use any specific or all, Objection.js classes globally through the `objectionjs` decorated namespace.\n\n\u003e Decorator namespace is `objectionjs`\n\n## Install\n\n```\nnpm i fastify-objectionjs-classes --save\n```\n\n## Usage\n\n```js\nconst fastify = require('fastify')();\nconst objectionJsClasses = require('fastify-objectionjs-classes');\n\nfastify.register(objectionJsClasses, {\n  classes: ['transaction', 'fn', 'snakeCaseMappers', 'ref'],\n});\n\n// somehwere in your code\n.whereIn(fastify.objectionjs.ref('testColumn').castText()) ,'testValue');\n```\n\n## API\n\n### Options\n\n_fastify-objectionjs-classes_ accepts the options object:\n\n```js\n{\n  classes: [ClassName];\n}\n```\n\n- `classes` (Default: `undefined`): a collection of objectionjs classes.\n\n## License\n\nLicensed under [MIT](./LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkamikazechaser%2Ffastify-objectionjs-classes","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkamikazechaser%2Ffastify-objectionjs-classes","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkamikazechaser%2Ffastify-objectionjs-classes/lists"}