{"id":22354050,"url":"https://github.com/movableink/ember-data-json-api-bulk-ext","last_synced_at":"2025-07-03T11:03:32.376Z","repository":{"id":43953781,"uuid":"248532714","full_name":"movableink/ember-data-json-api-bulk-ext","owner":"movableink","description":"Decorator to add support to Ember Data for the JSON:API Bulk Extension","archived":false,"fork":false,"pushed_at":"2023-04-19T16:29:25.000Z","size":2009,"stargazers_count":5,"open_issues_count":10,"forks_count":1,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-04-06T05:23:20.941Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/movableink.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-03-19T15:04:55.000Z","updated_at":"2023-04-19T16:29:31.000Z","dependencies_parsed_at":"2024-12-04T13:11:11.818Z","dependency_job_id":"2c6ca6fb-e46e-4621-931c-b7208e582741","html_url":"https://github.com/movableink/ember-data-json-api-bulk-ext","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/movableink/ember-data-json-api-bulk-ext","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/movableink%2Fember-data-json-api-bulk-ext","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/movableink%2Fember-data-json-api-bulk-ext/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/movableink%2Fember-data-json-api-bulk-ext/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/movableink%2Fember-data-json-api-bulk-ext/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/movableink","download_url":"https://codeload.github.com/movableink/ember-data-json-api-bulk-ext/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/movableink%2Fember-data-json-api-bulk-ext/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263314104,"owners_count":23447291,"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-12-04T13:11:01.041Z","updated_at":"2025-07-03T11:03:32.321Z","avatar_url":"https://github.com/movableink.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ember-data-json-api-bulk-ext\n\n![.github/workflows/verify.yml](https://github.com/movableink/ember-data-json-api-bulk-ext/workflows/.github/workflows/verify.yml/badge.svg)\n\nDecorator to add support to Ember Data for the [JSON:API Bulk Extension](https://github.com/json-api/json-api/blob/9c7a03dbc37f80f6ca81b16d444c960e96dd7a57/extensions/bulk/index.md).\n\n## Compatibility\n\n- Ember.js v3.24 or above\n- Ember CLI v2.13 or above\n- Node.js v12 or above\n\n## Installation\n\n```\nember install ember-data-json-api-bulk-ext\n```\n\nIf you have not yet created a subclass of the Ember Data Store, do so now. You will want to import and apply the decorator to this class.\n\n```javascript\n// app/services/store.js\nimport Store from '@ember-data/store';\nimport { withBulkActions } from 'ember-data-json-api-bulk-ext';\n\n@withBulkActions()\nclass CustomStore extends Store {}\n\nexport default CustomStore;\n```\n\n## Usage\n\nWith the decorator applied to your Store subclass, you'll have new methods on the store available to you for dealing with bulk API actions.\n\n```javascript\nconst first = this.store.createRecord('post', { title: 'First Post' });\nconst second = this.store.createRecord('post', { title: 'Second Post' });\n\nawait this.store.bulkCreate([first, second]);\n\nassert.ok(first.id, 'First record was given an ID');\nassert.ok(second.id, 'First record was given an ID');\n```\n\nNote the following limitations:\n\n- The models being operated on _must_ use the `JSONAPIAdapter` and `JSONAPISerializer`\n- All records must be of the same type (for now)\n- Records can only be created in bulk (for now)\n\n### Using the extension MIME type\n\nThe bulk extension for JSON:API describes a custom MIME type for your requests. To override the default JSON:API MIME type and use the one from the extension, pass the following option to the `withBulkActions` decorator:\n\n```javascript\n@withBulkActions({ useExtensionMimeType: true })\nclass CustomStore extends Store {\n```\n\n## Contributing\n\nSee the [Contributing](CONTRIBUTING.md) guide for details.\n\n## License\n\nThis project is licensed under the [MIT License](LICENSE.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmovableink%2Fember-data-json-api-bulk-ext","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmovableink%2Fember-data-json-api-bulk-ext","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmovableink%2Fember-data-json-api-bulk-ext/lists"}