Many-to-many joiner table permission question

I have the following 3 tables:

users = {id, name}
listings = {id, address}
users_to_listings = {id, user, listing, role}

When executing a query against listingsList, users should only be able to see listings for which they are attached to through users_to_listings table. I’ve created a custom role that all users will have. On that role, in the listings object, what read filter do I use for this?

On the listings table, I have tried many things, including:

  "users_to_listings": {
    "some": {
      "user": {
        "id": {
          "equals": "__loggedInUserId"