You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My goal is to use a single request to save (create) multiple models. The hope is to be able to solve this within the scope of Backbone.Relational and/or Backbone, without having to write custom setters and parsers.
I'm quite willing to code the solution into Backbone.Relational myself if that's what's needed, I just want to make sure that's it's not already there today and/or deemed unfeasible.
In detail, what I want to do is take this model definition
Is this possible today, only that I'm doing it wrong? If it is not possible today, are there some fundamental properties of Backbones Model or Backbone.Relationals RelationalModel that makes this impossible, or at least unfeasible?
The text was updated successfully, but these errors were encountered:
My goal is to use a single request to save (create) multiple models. The hope is to be able to solve this within the scope of Backbone.Relational and/or Backbone, without having to write custom setters and parsers.
I'm quite willing to code the solution into Backbone.Relational myself if that's what's needed, I just want to make sure that's it's not already there today and/or deemed unfeasible.
In detail, what I want to do is take this model definition
populate it with this data (JSONish representation)
meaning the OtherModels and YetAnotherModels will be accessible with
Now I want to be able to save the MyModel object to the server/API, get a response like this
and have it processed by the client in such a way that what I end up with in my MyModel object is this (again, JSONish representation)
Does that make sense?
Is this possible today, only that I'm doing it wrong? If it is not possible today, are there some fundamental properties of Backbones Model or Backbone.Relationals RelationalModel that makes this impossible, or at least unfeasible?
The text was updated successfully, but these errors were encountered: