meteor-astronomy: Nested class as array - bug in saving
Reproduction Repo: https://github.com/s7dhansh/meteor-astronomy-bug
Steps:
- Have a nested array in an astro class
- Instantiate the parent class
- Save it
- ‘Set’ the nested class
- Push the nested class into parent class key
- Save it again
It throws an error saying: MongoError: Cannot update <nestedClass> and <nestedClass.0.nestedClassField> at the same time.
About this issue
- Original URL
- State: closed
- Created 9 years ago
- Comments: 23 (11 by maintainers)
I should mention that in the example I gave before, I first set the new response via:
That is a very simplified example. In reality, those steps happen in disparate parts/components of my app. Otherwise I’d obviously do a simple: