Code Monkey home page Code Monkey logo

ember-data-save-relationships's People

Contributors

andypyesc avatar ashrafhasson avatar bryancrotaz avatar ember-tomster avatar leonardofaria avatar psteininger avatar ryleysill93 avatar swilliams avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

ember-data-save-relationships's Issues

Remove __id__ from the serialized object.

I saw here than there is an __id__ attribute assigned to the object. In my case, this cause an error on the server side because this is not a valid attribute. To fix it, I did this code :

import DS from 'ember-data';
import SaveRelationshipsMixin from 'ember-data-save-relationships';

export default DS.JSONAPISerializer.extend(SaveRelationshipsMixin, {
  serializeRecord(obj) {
    const serialized = this._super(...arguments);
    delete serialized.attributes.__id__;
    return serialized;
  }
});

And it seems to works well. I think it's safe to remove it in the addon. What do you think?

Duplicated records

Have you ever gotten the problem in which records get duplicated in ember data?
screen shot 2018-08-19 at 4 45 21 pm

record._internalModel.flushChangedAttributes is not a function

I'm working on a app built with Ember 3.5 and, when I save a new record, I have the error "record._internalModel.flushChangedAttributes is not a function". I suppose this is an old function and it had been removed but I didn't found it, even in old versions of ember.

By the way, is there a plan to support Ember 3 officially?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.