Shopify Functions Query Input finding out if client picked Pickup Option

Im having trouble with my Shopify Function where I want to give a discount on the products if the client chooses pickup. Is there a way to get if the client picked PICK_UP as the delivery option ? I tried looking into this option HERE, but the response from shopify comes back empty does not matter if I choose shipping option or a pickup option. Here is my input query:

query Input {
  cart {
    lines {
      quantity
      merchandise {
        __typename
        ...on ProductVariant {
          id
        }
      }
    }
    deliveryGroups {
      selectedDeliveryOption {
        deliveryMethodType
      }
    }
  }
  discountNode {
    metafield(namespace: "this", key: "that") {
      value
    }
  }
}

Am I doing anything wrong? Any ideas what I could try?

I am stuck in the same problem, did you find a solution?

Not exactly, I talked to the devs in the Discord channel and they mentioned that they are aware of this bug and are working to fix it. They have no ETA on this so, yeah, all we can do is wait :anguished_face:

I see, I imagined too that is a kind of bug on their side. Thanks for updating me and let’s wait :slightly_smiling_face: