Skip to content
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

Relationship data not saving when insert/update operations added #563

Closed
kvnh opened this issue May 15, 2019 · 2 comments
Closed

Relationship data not saving when insert/update operations added #563

kvnh opened this issue May 15, 2019 · 2 comments

Comments

@kvnh
Copy link

kvnh commented May 15, 2019

I appear to be having issues saving relationship data when operations: [.insert, .update] is set in the arguments.

Top level attributes like id and name save no problem but Question objects do not save.
When I remove the operations argument, the questions list will save successfully. But I need to use the insert/update operation. Has anyone else seen this issue?

{ id = 4875; name = "1_template"; questions = ( { id = 234555999; identifier = "1.1"; }, { id = 234555999; identifier = "1.2"; }, { id = 234555999; identifier = "1.3"; } ); version = 17; }

I am using the latest 6.0.0 pod

@kvnh kvnh closed this as completed May 15, 2019
@kvnh
Copy link
Author

kvnh commented May 15, 2019

Duplicate of #520
I needed to add .insertRelationships, .updateRelationships to the operations arg

@3lvis
Copy link
Owner

3lvis commented May 16, 2019

Happy that you got this resolved ❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants