In logs, would be nice if the args for each function call was printed by default
then I wouldn't have to add a console.log(args) under each one
2 Replies
Thanks for the feature request. I believe we used to have function call arguments, but removed them because with some call patterns the arguments took up excess memory. It may be reasonable to bring back arguments for dev deployments or make it opt-in.
If you want something easier to remember than pasting console.log(args) in each function, you could put it in a customQuery & customMutation https://www.npmjs.com/package/convex-helpers
npm
convex-helpers
A collection of useful code to complement the official convex package.. Latest version: 0.1.25, last published: 6 days ago. Start using convex-helpers in your project by running
npm i convex-helpers
. There are no other projects in the npm registry using convex-helpers.thanks, makes sense. will look into that.