Forum Discussion
koryknick
4 years agoEmployee
Rather than returning a dummy record, you could also check the returned document equal to an empty object. For example:
$ == {}
This can be your Router check condition if no data was returned by the select since if anything was returned, it would not be an empty object.
vincenr
4 years agoNew Contributor III
Ok, so I changed the pipeline to compare $ = {} but it’s not working for me.