Forum Discussion
SpiroTaleski
2 years agoValued Contributor
One way is to add JSON Formatter Snap after the Mapper Snap, with "Format each document" checked.
BR,
Spiro Taleski
- bojanvelevski3 years agoValued Contributor
I think when you execute a query and you don’t have any results, you will get an empty object on the output, or just the original object if the Execute snap has an input.
In this case, you can check for a specific field that you know that exists in the result set.
Example: $.hasPath(‘timestamp’)
Related Content
- 5 years ago
- 3 years ago
- 4 years ago
- 4 years ago