Skip to content

Commit

Permalink
docs(NODE-3650): Note that boolean options must now be specified as b…
Browse files Browse the repository at this point in the history
…ooleans in upgrade guide (#3017)
  • Loading branch information
kmahar authored and dariakp committed Nov 2, 2021
1 parent 43a8efb commit 2d85dc0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/CHANGES_4.0.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,9 @@ Users should use `authMechanismProperties.SERVICE_NAME` like so:
- In a URI query param: `?authMechanismProperties=SERVICE_NAME:alternateServiceName`
- Or as an option: `{ authMechanismProperties: { SERVICE_NAME: 'alternateServiceName' } }`

### Non-boolean types are no longer accepted for boolean options
Previously, the driver would accept values that could be coerced to booleans (e.g. `0` and `1`) for boolean options (for example, `UpdateOptions.upsert`). This is no longer the case; any option documented as being a boolean must be specified as a boolean value.

### db.collection no longer accepts a callback

The only option that required the use of the callback was strict mode.
Expand Down

0 comments on commit 2d85dc0

Please sign in to comment.