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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generated code for count doesn't use the where params #177

Closed
affanshahid opened this issue Oct 15, 2022 · 1 comment · Fixed by #178
Closed

Generated code for count doesn't use the where params #177

affanshahid opened this issue Oct 15, 2022 · 1 comment · Fixed by #178
Labels
bug Something isn't working generator

Comments

@affanshahid
Copy link
Contributor

My generated code for the count method looks like:

pub fn count(self, _where: Vec<WhereParam>) -> Count<'a> {
        Count::new(
            self.client._new_query_context(),
            ::prisma_client_rust::QueryInfo::new("Candidate", _outputs()),
            vec![],
        )
}

Note the _where params isn't being passed on as the last argument, instead its just vec![]. This seems to be a bug unless I'm missing something.

@Brendonovich
Copy link
Owner

gonna keep this open for anyone else that encounters it before 0.6.3

@Brendonovich Brendonovich reopened this Oct 17, 2022
@Brendonovich Brendonovich added this to the 0.6.3 milestone Oct 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working generator
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants