Skip to content

Commit

Permalink
Merge pull request #12180 from JosueMolinaMorales/patch-1
Browse files Browse the repository at this point in the history
Fix typo `emaill` to `email`
  • Loading branch information
Uzlopak authored Aug 1, 2022
2 parents 8020515 + d35e2c5 commit ce4a4bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/typescript/schemas.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ The 4th param, `TQueryHelpers`, is used to add types for [chainable query helper

Mongoose checks to make sure that every path in your schema is defined in your document interface.

For example, the below code will fail to compile because `emaill` is a path in the schema, but not in the `DocType` interface.
For example, the below code will fail to compile because `email` is a path in the schema, but not in the `DocType` interface.

```typescript
import { Schema, Model } from 'mongoose';
Expand Down

0 comments on commit ce4a4bf

Please sign in to comment.