Access current collection and field in input-component.vue for custom filter validation logic

I have added the solution here if someone is looking for it