We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
https://github.com/payloadcms/payload/blob/master/src/mongoose/connect.ts#L42 This line is executed before buildSchema in initAsync function. But after buildSchema in initSync function. And this makes the query api behavior different.
Setting strictQuery to false should be executed before buildSchema in initSync function too.
Setting strictQuery to false is executed after buildSchema in initSync.
Rearrange the execute order in initSync.
1.0.22
The text was updated successfully, but these errors were encountered:
Related discussion: #852
Sorry, something went wrong.
fix: #939
f030801
b1a1575
Successfully merging a pull request may close this issue.
Bug Report
https://github.com/payloadcms/payload/blob/master/src/mongoose/connect.ts#L42
This line is executed before buildSchema in initAsync function. But after buildSchema in initSync function. And this makes the query api behavior different.
Expected Behavior
Setting strictQuery to false should be executed before buildSchema in initSync function too.
Current Behavior
Setting strictQuery to false is executed after buildSchema in initSync.
Possible Solution
Rearrange the execute order in initSync.
Steps to Reproduce
Detailed Description
1.0.22
The text was updated successfully, but these errors were encountered: