I’m playing around some with RavenDb and documents.
Let’s say that I got the following document:
BlogEntry
Id
Title
UserId
Comments
Title
Body
How would I handle comment edits? They are not very frequent, but should be possible.
Is it something like:
- Load document
- Find the correct comment
- Update it
- Save document
Should I put some kind of id in the comment child doc?
Yes, that is probably best, you can see how we handle that with RaccoonBlog