Query filter product by Collection(now called category)

Thank you for the reply it help me rethink what I was doing and I have it working now. I was trying to use the collection name as a string and not the ID of the collection itself.