What is the "canonical" location for a document? Of course there is always the hm://Owner/:r/ResourceId format, but its pretty long and ugly. The user may want a canonical pretty url.

It seems the most reasonable mechanism to describe it, is by specifying attributes for parentRid and pathName

Say we have ResourceID: $Autos and $Toyota. Autos has no parent, and the pathName set to autos. Toyota specifies the parentRid to $Autos and with a pathName: toyota then we can construct this document's canonical pretty URL to be mystuff.com/autos/toyota

This also allows us to "solve" the transition to collections. All legacy documents would receive these fields at the logical layer, and we can convert our "empty string query block" behavior to basically query for any doc whose parentRid equals "this" doc's parent ID.


Do you like what you are reading? Subscribe to receive updates.

Unsubscribe anytime

Comments