Good day,
Can’t seem to be able to get the collection name parameter to work with the functionOne() I created. Can’t we pass the collection name as is?
Thanks for any tips and help.
db.functionOne(DataOne, newDoc) <-- DataOne throws the error: `Cannot find name 'DataOne'. ts(2552)
async functionOne<DocType>(nameCollection: Model<DocType>, doc: HydratedDocument<DocType>)
{
...
}