Skip to content

Commit c1a70ba

Browse files
authored
Update 2-validate-users.mdx
Clarify that devs should look for a call to insertOne() rather than the definition of insertOne().
1 parent 2c062fe commit c1a70ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/60-schema-validation/2-validate-users.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ If you see an error related to your user permissions, go back to the [Database U
107107
Now that the schema validation is enabled for the `users` collection, you can test it by inserting a document that does not match the schema.
108108

109109
1. Open the file `server/src/schema-validation/test-validation.ts` [file](https://github.com/mongodb-developer/library-management-system/blob/main/server/src/schema-validation/test-validation.ts).
110-
2. Explore the `insertOne()` function that will try to insert a new user and the error handling code.
110+
2. Explore the call to the `insertOne()` function around line 12 that will try to insert a new user and the error handling code around line 18.
111111
3. Execute the script by running the following command.
112112

113113
```sh

0 commit comments

Comments
 (0)