edgedb-js icon indicating copy to clipboard operation
edgedb-js copied to clipboard

Improve argument encoding error messages

Open jaclarke opened this issue 2 years ago • 0 comments

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.

jaclarke avatar Jun 19 '22 21:06 jaclarke