New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make strictQuery
false
by default again
#11861
Comments
as mentioned in #12389 (comment), what about setting it to |
@hasezoey 'strictQuery: throw' by default would be a bit too strict to be a default for Mongoose. Wouldn't fit in well with the rest of our defaults. |
We should also decouple |
@vkarpov15 Glad it will be over soon, can't wait for mongoose 7 |
(see Automattic/mongoose#11861) set MovieDb baseUrl to undefined as null is a value
* test mocks * test mocks * test mocks * test mocks * test mocks * test mocks * upd deps * upd dev deps * lint * upd yarn * try downgrade mongoose * updated omdb replies * updated omdb replies * updated omdb replies * updated omdb replies * updated omdb replies * log debug * log more * added first tmdb mocks * remove logs remove tmdb mocks added get series IMDbID from tmdb as omdb seems to give wrong value * set local tmdb * set local tmdb * set local tmdb * set local tmdb * set local tmdb * omdb-mocks * update deps * remove comment * lint * remove log * mongoose strictQuery now default to false * mongoose strictQuery true to throw (see Automattic/mongoose#11861) set MovieDb baseUrl to undefined as null is a value * clean omdb mocks * added omdb mocks saison 2 * added omdb mocks saison 3
BREAKING CHANGE: make strictQuery false by default again
why not merge on v6.x? moving to v7.x takes more problem. @vkarpov15 |
this is a breaking change and so could only be done on a major version change, if you want to disable it globally for 6.x you can use |
Prerequisites
Mongoose version
6.x
Node.js version
Any
MongoDB server version
Any
Description
The
strictQuery
change in Mongoose 6 (https://mongoosejs.com/docs/migrating_to_6.html#strictquery-is-removed-and-replaced-by-strict) has caused a lot of confusion. Here's a couple:#11609
#11807
#11514
Etc.
Steps to Reproduce
From #11609:
Expected Behavior
Make
strictQuery
false by default in Mongoose 7The text was updated successfully, but these errors were encountered: