edgedb-js
edgedb-js copied to clipboard
Improve argument encoding error messages
https://discord.com/channels/841451783728529451/988173463732772895/988186281529974814
It's common for datatypes that don't have a native js/json type to be encoded as strings (eg. int64, datetime/temporal, etc), so if the wrong datatype is passed as a query arg suggest in the error message that the user add an explicit cast to the query.