customize the query for repeatable entries

i am currently creating an infolist view page with the following information:
  1. The book information
  2. The current people who has borrowed the book.
In my situation, i want to display a repeatable entry in 2nd option but it always returns all of the data from the relationship i have created. Is there any way to modify the query that is being used to get all the data from the relationship?

For ex.:
  RepeatableEntry::make(borrows)
    ->relationshipQuery(fn (Builder $query) => $query->where('return_status', 'pending'))
Was this page helpful?