When an edge is created, if created with a document, convert _from and _to to use the document ID.