Add support for optional fields inside tuple parameters inside e.params({ ... }) arguments. This would allow for an implicit JSON to EdgeDB mapping inside the query.run(client, {...}) method while not having to cast every single parameter by hand using e.json params.
Syntax
Why not use the already existing e.optional() allowed in the top level properties of e.params({}) argument, and possibly implement it this way:
Request
Add support for optional fields inside tuple parameters inside
e.params({ ... })
arguments. This would allow for an implicit JSON to EdgeDB mapping inside thequery.run(client, {...})
method while not having to cast every single parameter by hand usinge.json
params.Syntax
Why not use the already existing
e.optional()
allowed in the top level properties ofe.params({})
argument, and possibly implement it this way:This would allow to use the
query.run(client, {...})
method like so (or by simply passing the correct object as parameters):Thank you in advance.