{"id":21884637,"url":"https://github.com/onehilltech/ember-blueprint-data","last_synced_at":"2025-04-15T07:19:07.617Z","repository":{"id":57223023,"uuid":"158639811","full_name":"onehilltech/ember-blueprint-data","owner":"onehilltech","description":null,"archived":false,"fork":false,"pushed_at":"2024-04-27T12:54:15.000Z","size":2877,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-28T17:47:19.422Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/onehilltech.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-11-22T03:53:02.000Z","updated_at":"2024-04-27T12:54:18.000Z","dependencies_parsed_at":"2023-02-10T15:45:23.236Z","dependency_job_id":null,"html_url":"https://github.com/onehilltech/ember-blueprint-data","commit_stats":null,"previous_names":[],"tags_count":60,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onehilltech%2Fember-blueprint-data","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onehilltech%2Fember-blueprint-data/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onehilltech%2Fember-blueprint-data/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onehilltech%2Fember-blueprint-data/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/onehilltech","download_url":"https://codeload.github.com/onehilltech/ember-blueprint-data/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248657855,"owners_count":21140843,"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-11-28T10:15:01.570Z","updated_at":"2025-04-15T07:19:07.594Z","avatar_url":"https://github.com/onehilltech.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ember-blueprint-data\n\nSupport add-on for integrating Blueprint applications with ember-data.\n\n\n## Compatibility\n\n* Ember.js v4.4 or above\n* Ember CLI v4.4 or above\n* Node.js v14 or above\n\n\n## Installation\n\n\n    ember install ember-blueprint-data\n\n\n\nMongoDB Support\n------------------------------------------------------------------------------\n\nThe addon provides a mixin for `DS.RESTSerializer` that provides baseline behavior\nfor integrating with `blueprint-mongodb`. More specifially, the MongoDB mixin\nprovides the following functionality:\n\n* It defines the `primaryKey` as `_id`.\n* It only serializes attributes that have changed.\n* It only serializes `belongsTo` relationships that exist, and have changed.\n* It does not serialize attributes that have `serialize:false` as part of its attribute definition.\n* It normalizes the `queryRecord` response by converting it from an array to a single value.\n* It extends the `Store` and `RESTAdapter` with support for the `search()` action on a MongoDB `ResourceController`.\n\nUse the MongoDB mixin by importing it into a serializer, such as the application\nserializer, and applying it to the extended class.\n\n```javascript\n// app/serializers/application.js\n\nimport DS from 'ember-data';\nimport MongoDB from 'ember-blueprint-data/mixins/serializers/mongodb'\n\nexport default DS.RESTSerializer.extend (MongoDB, {\n\n});\n```\n\nHappy Coding!\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fonehilltech%2Fember-blueprint-data","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fonehilltech%2Fember-blueprint-data","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fonehilltech%2Fember-blueprint-data/lists"}