New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

ember-blueprint-data

Package Overview
Dependencies
Maintainers
1
Versions
67
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ember-blueprint-data

The default blueprint for ember-cli addons.

  • 1.3.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
10
decreased by-28.57%
Maintainers
1
Weekly downloads
 
Created
Source

ember-blueprint-data

Support add-on for integrating Blueprint applications with ember-data.

Compatibility

  • Ember.js v4.4 or above
  • Ember CLI v4.4 or above
  • Node.js v14 or above

Installation

ember install ember-blueprint-data

MongoDB Support

The addon provides a mixin for DS.RESTSerializer that provides baseline behavior for integrating with blueprint-mongodb. More specifially, the MongoDB mixin provides the following functionality:

  • It defines the primaryKey as _id.
  • It only serializes attributes that have changed.
  • It only serializes belongsTo relationships that exist, and have changed.
  • It does not serialize attributes that have serialize:false as part of its attribute definition.
  • It normalizes the queryRecord response by converting it from an array to a single value.
  • It extends the Store and RESTAdapter with support for the search() action on a MongoDB ResourceController.

Use the MongoDB mixin by importing it into a serializer, such as the application serializer, and applying it to the extended class.

// app/serializers/application.js

import DS from 'ember-data';
import MongoDB from 'ember-blueprint-data/mixins/serializers/mongodb'

export default DS.RESTSerializer.extend (MongoDB, {

});

Happy Coding!

Keywords

FAQs

Package last updated on 27 Apr 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc