Skip to content
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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(base_model): add clause variant to findBy method #1020

Merged
merged 2 commits into from Mar 26, 2024
Merged

Conversation

RomainLanz
Copy link
Member

Hey! 馃憢馃徎

Same as #1010.

Adding the clause variant to findBy and findByOrFail.

@RomainLanz RomainLanz merged commit 059c472 into develop Mar 26, 2024
30 of 32 checks passed
@RomainLanz RomainLanz deleted the feat/findBy branch March 26, 2024 21:07
*/
findByOrFail<T extends LucidModel>(
this: T,
clause: Record<string, unknown>,
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi, @RomainLanz!

Any reasons why clause is not type-safe? Looks like it is possible to infer at least keys.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants