Skip to content

Commit

Permalink
Use ilike instead of like for search
Browse files Browse the repository at this point in the history
  • Loading branch information
ken-matsui committed Jan 13, 2024
1 parent 5967aac commit 13b42b5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions graphql/searchPackages.gql
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
query searchPackages($name: String!, $limit: Int!, $offset: Int!) @cached(ttl: 600) {
packages(where: {name: {_like: $name}}, limit: $limit, offset: $offset, distinct_on: name) {
packages(where: {name: {_ilike: $name}}, limit: $limit, offset: $offset, distinct_on: name) {
description
edition
id
name
published_at
version
}
packages_aggregate(where: {name: {_like: $name}}) {
packages_aggregate(where: {name: {_ilike: $name}}) {
aggregate {
count(distinct: true)
}
Expand Down

0 comments on commit 13b42b5

Please sign in to comment.