prisma1
prisma1 copied to clipboard
RegExp Filter
What feature are you missing? Filtering by Regular Expression pattern.
How could this feature look like in detail? Tradeoffs?
type RegExp {
pattern: String!
ignoreCase: Boolean # default: false
multiline: Boolean # default: false
global: Boolean # default: false
}
input TypeWhereInput {
# ...
string_regexp: RegExp
# ...
}
query {
posts(
where: {
title_regexp: { pattern: "^donald|(trump|duck)$" }
}
) {
id
title
}
}
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 10 days if no further activity occurs. Thank you for your contributions.
Prisma 2 is out 🤷♂️