1. A method of writing a document with nested relationships to a schemaless database, the steps including: receiving a document creation request that includes document data and a document path; partitioning the received document path into collection segments and document identification string segments; determining the target collection by identifying the penultimate segment of the retrieved document path; writing the document data to the target collection on the database using the received document path in full as the document's actual database identification; and writing an additional ID field to the saved document data, the additional ID field containing the document's original actual database identification.