Cannot create property 'afterWriteTickInfo' on string '[Circular]'

Hi everybody,
I’m trying to complete the exercise related to $match.
Declare the variable pipeline,
load the function: load(‘validateLab1.js’) → returns true
trying to validate the variable: validateLab1(pipeline) I get the following error:internal/streams/writable.js:452
state.afterWriteTickInfo = null;
^

TypeError: Cannot create property ‘afterWriteTickInfo’ on string ‘[Circular]’
at afterWriteTick (internal/streams/writable.js:452:28)
at processTicksAndRejections (internal/process/task_queues.js:81:21)

Any help?

Thanks
Marco

Hi Marco, welcome to the community.
Thank you so much for reporting this.
Seems like this is related to mongosh and a JIRA ticket has been raised here regarding the same: MONGOSH-884.

While our mongosh team is working on this, you can continue working on the lab by using the legacy mongo shell.

Thanks and Regards.
Sourabh Bagrecha,
Curriculum Services Engineer