You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently this projection type will not produce a TS error even though it is projecting properties that do not exist on the schema. This can be problematic in applications, especially because it will not flag misspelled properties (an issue we ran into recently)
The text was updated successfully, but these errors were encountered:
I bet this is being caused by the combination of using a Partial on the projection type definition and having the projection type defined in the generic so we can use it in the return value.
Consider the following schema:
Now consider some code that queries this model:
Currently this projection type will not produce a TS error even though it is projecting properties that do not exist on the schema. This can be problematic in applications, especially because it will not flag misspelled properties (an issue we ran into recently)
The text was updated successfully, but these errors were encountered: