pub fn schema_from_entity_catalog(
document: &Value,
app_id: &str,
requested_entities: &[&str],
) -> Result<AppSchema, DatabaseError>Expand description
Builds a typed projection from the app’s compiled entity contract. Every requested field must declare its logical type; guesses from SQL storage or field names would let one backend interpret app data differently.