{"type":"video","version":"1.0","html":"<iframe src=\"https://www.loom.com/embed/0a41400dda1c4bb29fd9bae1294c9b03\" frameborder=\"0\" width=\"1662\" height=\"1246\" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>","height":1246,"width":1662,"provider_name":"Loom","provider_url":"https://www.loom.com","thumbnail_height":1246,"thumbnail_width":1662,"thumbnail_url":"https://cdn.loom.com/sessions/thumbnails/0a41400dda1c4bb29fd9bae1294c9b03-1823f32a85a48ee8.gif","duration":308.163,"title":"Database to Roam Export Type Converters","description":"This Loom describes a PR that exports database relations to Roam using cross-app type converters. It introduces dbNodeSchemaToCrossApp, dbRelationTypeSchemaToCrossApp, dbRelationTripleSchemaToCrossApp, and dbRelationToCrossApp, plus plural bulk variants for concentrating database operations over batches. The conversion relies on ConceptMap, AccountMap, and a space map to translate IDs into Roam rids and local IDs into URLs, with sync expecting these maps to be complete and throwing if something is missing. The discussion highlights how relation triples are built, including label and complement handling depending on whether the relation exists, and notes that source and destination are expected to be concept mappings."}