fn declared_fields( schema: &AppSchema, entity: &str, names: &[&str], ) -> Result<Vec<String>, DatabaseError>