I would like to use shopify function cart transform api to limit the free gift quantity to always be 1, due to previously some people are able to modify the free gift quantity and get extra free gift. For now, we are using shopify script to do the same function, but since it is going to be deprecated, we try to revamp it to use shopify function.
However, in the cart transform api documentation, it seems the update operation does not support a quantity update. Please help to advise what I can do to achieve the same result using shopify function or else. Thanks!