Generated SDK types
Given a schema with a nullable type
type MyType @table() {
id: uuid!
nullableString: String
}
When running a query that selects records from MyType and filters out null values for nullableString, the generated SDK still types nullableString as string | null (or string? | null). Even though the query ensures no null values are returned for that field.
It would be great if the SDK could be smarter and refine the generated type to just string when the query explicitly filters out null values for that field.
1
vote