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
I used to be able to execute this code (ver 4.x I think).., where the input to the generator was a JSON entity.., but have not been able to in more recent code. Could be something I'm missing.
async function run() {
await execa('hygen', ['typeGen', 'new', `--args=${JSON.stringify(types[0])}`]).stdout?.pipe(process.stdout);
}
The text was updated successfully, but these errors were encountered:
While this works.. I think there could be a more elegant way to execute this approach without having to create the boiler-plate code. Suggestions for a more elegant option?
Anyway, love the library and simplicity.
rogrdat
changed the title
JSON string as value of args parameter
[Solved] JSON payload to generator
Jul 2, 2022
I used to be able to execute this code (ver 4.x I think).., where the input to the generator was a JSON entity.., but have not been able to in more recent code. Could be something I'm missing.
The text was updated successfully, but these errors were encountered: