You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
context.bindings.namedOutput is currently the default, but it is likely a better async JS functions pattern to use return values, either by directly returning and using $return, or by returning the object. Here is some more context: Azure/Azure-Functions#431
From issue:
As a newbie, knowing to change host.json to use $return instead of res falls into category of somewhat arcane rule (albeit easy enough to understand once pointed to that direction) - prior to change, seemingly basic stuff wouldn't function as expected (promises or otherwise), even after consulting copious amount of literature on js/async/promises/etc. ... today I'd throw a +1 vote for having the defaults sticking to what I perceive to be the relatively better known concept of $return.
The text was updated successfully, but these errors were encountered:
context.bindings.namedOutput is currently the default, but it is likely a better async JS functions pattern to use return values, either by directly returning and using $return, or by returning the object. Here is some more context: Azure/Azure-Functions#431
From issue:
The text was updated successfully, but these errors were encountered: