Rule based Access Control for Referenced Collections

Hi, I have following jobs document where selectedBid is referenced entity. I am using Atlas App Services Graphql endpoint to query this particular document. I recently started to work on Rule Based Access Control, and I am having difficulty accessing/filtering referenced collections. I tried many rules but I couldn’t manage to implement rule correctly.

I need selectedBid field to be resolved only when jobs.selectedBid = bids._id and only for that document.

how should I approach the problem? I have no issue with embedded documents.

    "job": {
      "_id": "65d8a6abfa8c61886c64fb20",
      "selectedBid": {
        "_id": "6545173cbf1b9246dc0f4aa5",
        "createdAt": "2023-01-02T00:00:00Z",