I m trying migrating an existing web application to use RavenDB.
I currently have pages in my web application which allow you to view Categories, SubCategories and Resources based on an id in the querystring.
However I notice that RavenDB generates ids for aggregate roots, but not for child entities.
I don t think subcategory is an aggregate root (a Category has SubCategories), so am making it a sub-document of my Category document.
Am I wrong to make it a sub-document as I m accessing it directly by its id passed in on the querystring? But if not, how should I access individual SubCategories as RavenDB does not seem to generate ids for entities that are not aggregate roots?