-
Notifications
You must be signed in to change notification settings - Fork 76
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Export a single model and related models? #366
Comments
I think I figured out how to export a single model and its relationships by putting all the related records into the root data attribute.
This imports, however it looks like it deletes everything in the storage except for what was imported. Is there a way to have it add and/or overwrite, rather than start from scratch? Edit: That might be as simple as setting |
Hey @superlou you are right. ember-local-storage/addon/helpers/import-export.js Lines 22 to 40 in aa1f837
|
Thanks. This is working, but would it make sense to leave this open as a feature request (export a single model or subset of the records)? Otherwise, I guess it can be closed. |
It looks like the export function will export the entire local-storage database. Is there a way to serialize only a specific model and its relationships?
Since the add-on serializer extends JSONAPISerializer, I expected it to include the related models data, but it only appears to include the related IDs and model names.
The text was updated successfully, but these errors were encountered: