Hi,
I tried to execute validateLab1 from the location where I created file by connecting to Atlas. But got below error
MongoDB Enterprise Cluster0-shard-0:PRIMARY> load("\validateLab1.js")
true
MongoDB Enterprise Cluster0-shard-0:PRIMARY> validateLab1(pipeline)
2019-01-09T21:17:47.897+0530 E QUERY [thread1] ReferenceError: validateLab1 is not defined :
@(shell):1:1
Could anyone please help me with this error?
Thanks,
Sujay