Forum Discussion

SandeepVemula's avatar
SandeepVemula
Contributor
8 years ago
Solved

What if No input is coming to Mapper

I have a mapper and I have a expression as below $.hasOwnProperty(‘query’) ? $query : ‘not present in input’ The expression is working fine if input comes to mapper. But if there is no input/inpu...
  • brettdorsey's avatar
    8 years ago

    Sandeep,

    Many snaps will do nothing if there is no input at all from a previous snap. In order to get around this, you can create a JSON Generator to produce a dummy document and merge it with your normal input using the JOIN snap. Check the link below for an example.