pub fn validate_predicate( entity: &Entity, predicate: &Predicate, ) -> Result<(), DatabaseError>
Validates a nested predicate against one declared entity and a fixed depth bound.