Code Snippet Generator - .then vs async/await

Postman code usually provide JavaScript fetch code in .then syntax.

Is there a way to make async/await syntax default?

Hey @docking-module-admi2 :wave:

Welcome to the Postman Community! :postman:

There isn’t an option for that code generator - The closest to this would be the NodeJs - Axios code generator, within the configuration options there is a toggle to choose async/await.

You could raise this as a new feature request on the Postman Code Generators Repo:

@danny-dainton Thanks.

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.