Open jackfischer opened 1 year ago
I'd like to call out too a type's declared property cannot override cardinality when computing like this. i.e. @jackfischer example above is different than
optionalProperty: e.op(a.optionalProperty, "??", a.requiredProperty),
But it would be great if both inferred the correct cardinality to TS.
I believe this is fixed with #971?
Follow up from discord
Code The code causing the error.
Schema
Your application schema.
Generated EdgeQL
Run the
.toEdgeQL()
method on your query and print the result. Then copy the generated query here.Error or desired behavior
name
infers tostring | null
instead of the expectedstring
.Versions (please complete the following information):
2.0
): 3.02.0
): 3.3.0+3f6a0a0edgedb-js
version (e.g.0.20.10
;): 1.3.2@edgedb/generate
version (e.g.0.0.7
;): 0.3.0