How to use input query variables in cart and checkout validation function extension?

I want to use the variants value of metafields in input.graphql of the cart and checkout validation extension, as I mentioned earlier: the $selectedCollectionIds variable. May I ask which resource Id do I want to set to?