Hi @tjm1987
I think you need to check if a restaurant post with the same title exists or not (I believe the restaurant and supplier name are unique ). If it does, then check if a supplier post with the same title exists or not. If the supplier exists, get the ID and update the relationship. If not, create a new supplier first.
I hope this makes sense 🙂