How can i use a mode with another comparision? #93
-
Im trying to lookup a string which is supposed to be case insensitive, in standard prisma you would be able to do something like the following: prisma.user.findFirst({
where:{
name:{
mode:"insensitive",
equals:"xyz.."
}
}
}) i have now tried to replicate the following in rust, but i don't believe it's possible to chain it hence why it's not working. prisma.user().find_first(vec![
prisma::user::name::mode(prisma::_prisma::QueryMode::Insensitive),
prisma::user::name::equals(name)
]).with(....).exec().await.unwrap() |
Beta Was this translation helpful? Give feedback.
Answered by
Brendonovich
Jul 6, 2022
Replies: 1 comment 16 replies
-
That's interesting, I haven't tested case sensitivity but the code you provided should work. I don't understand what you mean about chaining though? |
Beta Was this translation helpful? Give feedback.
16 replies
Answer selected by
char-ptr
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
That's interesting, I haven't tested case sensitivity but the code you provided should work. I don't understand what you mean about chaining though?