{"id":15553328,"url":"https://github.com/bahmutov/objection-example","last_synced_at":"2025-09-28T23:31:21.832Z","repository":{"id":43338687,"uuid":"197842681","full_name":"bahmutov/objection-example","owner":"bahmutov","description":"Simple Object.js ORM example copied from Vincit/objection.js","archived":false,"fork":false,"pushed_at":"2024-01-06T06:54:26.000Z","size":357,"stargazers_count":2,"open_issues_count":16,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-12-27T20:56:45.899Z","etag":null,"topics":["cypress-example"],"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/bahmutov.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}},"created_at":"2019-07-19T21:12:37.000Z","updated_at":"2021-07-19T00:31:26.000Z","dependencies_parsed_at":"2024-01-06T07:32:50.638Z","dependency_job_id":"b5b6799c-f856-47df-895b-ca5c26c5e51d","html_url":"https://github.com/bahmutov/objection-example","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/bahmutov%2Fobjection-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bahmutov%2Fobjection-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bahmutov%2Fobjection-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bahmutov%2Fobjection-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bahmutov","download_url":"https://codeload.github.com/bahmutov/objection-example/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":234570363,"owners_count":18854155,"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":["cypress-example"],"created_at":"2024-10-02T14:29:17.802Z","updated_at":"2025-09-28T23:31:21.433Z","avatar_url":"https://github.com/bahmutov.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# objection-example [![renovate-app badge][renovate-badge]][renovate-app] [![CircleCI](https://circleci.com/gh/bahmutov/objection-example/tree/master.svg?style=svg)](https://circleci.com/gh/bahmutov/objection-example/tree/master)\n\u003e Simple Object.js ORM example copied from Vincit/objection.js\n\nThis example was copied from folder [examples/express-es7](https://github.com/Vincit/objection.js/tree/master/examples/express-es7) of [github.com/Vincit/objection.js](https://github.com/Vincit/objection.js). See [Objection.js docs](https://vincit.github.io/objection.js/)\n\nThe original client code that makes HTTP requests is in [client.js](client.js) but for this demo we are going to use [Cypress Test Runner](https://github.com/cypress-io/cypress) with [@bahmutov/cy-api](https://github.com/bahmutov/cy-api) plugin.\n\n![Tests](images/people.png)\n\n## Install\n\n```shell\nnpm ci\n```\n\n## Run\n\nTo start local server and open Cypress\n\n```shell\nnpm run dev\n```\n\n## Tests\n\nThere are several specs in [cypress/integration](cypress/integration) folder\n\n- [movies-spec.js](cypress/integration/movies-spec.js) shows how to add a new movie, and how the API checks for required fields to be present\n- [spec.js](cypress/integration/spec.js) shows complex calls to insert multiple entities in a single call, updating multiple objects using \"upsert\"\n\n## More info\n\n- Read [\"Black box API testing with server logs\"](https://glebbahmutov.com/blog/api-testing-with-sever-logs/) post.\n- see another example [server-logs-example](https://github.com/bahmutov/server-logs-example)\n\n[renovate-badge]: https://img.shields.io/badge/renovate-app-blue.svg\n[renovate-app]: https://renovateapp.com/\n\n### Small print\n\nAuthor: Gleb Bahmutov \u0026lt;gleb.bahmutov@gmail.com\u0026gt; \u0026copy; 2019\n\n- [@bahmutov](https://twitter.com/bahmutov)\n- [glebbahmutov.com](https://glebbahmutov.com)\n- [blog](https://glebbahmutov.com/blog)\n\nOriginal License: See [github.com/Vincit/objection.js](https://github.com/Vincit/objection.js)\nAdditions showing logs and Cypress tests under MIT License - do anything with the code, but don't blame me if it does not work.\n\nSupport: if you find any problems with this module, email / tweet /\n[open issue](https://github.com/bahmutov/objection-example/issues) on Github\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbahmutov%2Fobjection-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbahmutov%2Fobjection-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbahmutov%2Fobjection-example/lists"}