-
Type: Task
-
Resolution: Done
-
Priority: Unknown
-
None
-
Affects Version/s: None
-
Component/s: None
-
Labels:
NODE-3895 Description
As a developer, I'd like the type system to catch errors I make, like trying to query on a field that doesn't exist, or when I have made a typo in an existing field name.
For example:
```
interface Person =
{ name: string; age: number; }
db.collection<Person>('people').find(
{ nam: 'Alice' } // should be a type error; `nam` is not an attribute of the schema
);
```
- is depended on by
-
NODE-3895 Typescript should emit an error when filtering on columns not in schema
- Closed