-
Notifications
You must be signed in to change notification settings - Fork 1.1k
fix(sequelize): add support for extended operators in sequelize #10284
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
fix(sequelize): add support for extended operators in sequelize #10284
Conversation
postgres supports extended operators but missing in sequelize fix loopbackio#10272 Signed-off-by: Yesha Mavani <[email protected]>
Pull Request Test Coverage Report for Build 7502386386Warning: This coverage report may be inaccurate.We've detected an issue with your CI configuration that might affect the accuracy of this pull request's coverage report.
💛 - Coveralls |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you please add a test case to it ?
added test cases for same fix loopbackio#10272 Signed-off-by: Yesha Mavani <[email protected]>
added.. |
}, | ||
}) | ||
async getRolesByDesc(): Promise<Roles[]> { | ||
return this.roleRepository.find({ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Its better to pass this as where clause from test case
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
added test cases fix loopbackio#10272 Signed-off-by: Yesha Mavani <[email protected]>
fix loopbackio#10272 Signed-off-by: Yesha Mavani <[email protected]>
postgres supports extended operators but missing in sequelize
fix #10272
Please provide a high-level description of the changes made by your pull request.
postgres supports extended operators but missing in sequelize
added the supported operators
also the array field was by default given integer[] type even if it was string[].
added to condition to check before giving a default value.
Include references to all related GitHub issues and other pull requests, for example:
Fixes #10272
Example app to test - https://github.com/yeshamavani/sequelize
Checklist
npm test
passes on your machinepackages/cli
were updatedexamples/*
were updated👉 Check out how to submit a PR 👈