code: function inflateRelation({ schemas, relation }) {
    // Clones the base attributes from the relation
    // let inflated = { ...relation }
    let inflated = clone(relation)
  
    // console.log(inflated)
  
    // defines inflated.alias && inflate.schema
    const ownedSchema = schemas.find((s) => { return s._id === inflated.schema_id })
    const relatedSchema = schemas.find((s) => { return s._id === inflated.related_schema_id })
  
    inflated.schema = inflateMeta(relatedSchema.label)
    inflated.alias = inflateMeta(inflated.as || relatedSchema.label)
    inflated.reverse_alias = inflateMeta(inflated.reverse_as || ownedSchema.label)
    inflated.related_lead_attribute = !!relatedSchema.attributes[0] ? relatedSchema.attributes[0].identifier : '_id' // TODO - use `slug` instead of
  
    // Returns the inflated relation
    return inflated;
  }
docs: // // //