0

if my variable name (fileName) could be ABC_20200908.DAT or DEF_0908.DAT (the date part vary each day) and I want to match those names in my Mongo collection that have File_name_Template field as [ABC_yyyymmdd.DAT] or [DEF_mmdd.DAT] and return the record, is there any statement that I can write in my typescrip module to do that and return the _id associated with that record in my collection? Please note that I can change the value in File_name_Template field to any expression that would make this match easier.

Pari
  • 11
  • 2

0 Answers0