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
Is there an easy way to call model.toJSON() and return all attributes and nested collections/models and all their attributes, all the way down the chain?
The only way I could find to do it was change backbone-jjrelational.js file within the toJSON function and replace:
withRelIDs: true
with
withRelIDs: !!options.withRelIDs
Then I call model.toJSON({withRelIDs: false})
The text was updated successfully, but these errors were encountered:
I'm so sorry, I'm currently caught up in my master's thesis, and somehow I totally forgot to respond!
Is this still relevant? If yes, I'll look into it as soon as I can!
Hey Jonny, me again!
Is there an easy way to call model.toJSON() and return all attributes and nested collections/models and all their attributes, all the way down the chain?
The only way I could find to do it was change backbone-jjrelational.js file within the toJSON function and replace:
with
Then I call model.toJSON({withRelIDs: false})
The text was updated successfully, but these errors were encountered: