prisma1 icon indicating copy to clipboard operation
prisma1 copied to clipboard

RegExp Filter

Open everdrone opened this issue 7 years ago • 2 comments

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
  }
}

everdrone avatar Jan 29 '18 14:01 everdrone

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.

stale[bot] avatar Jan 09 '19 06:01 stale[bot]

Prisma 2 is out 🤷‍♂️

JefferyHus avatar Oct 28 '20 17:10 JefferyHus