Support passing keys when registering a relation in a repo