Skip to content

Commit 57a851b

Browse files
committed
Fix filter: -> where: across all search skill files (everything is where)
1 parent a8555c1 commit 57a851b

6 files changed

Lines changed: 11 additions & 13 deletions

File tree

skills/constructive-sdk-search/references/postgis.md

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ The connection filter PostGIS plugin exposes these operators on geometry/geograp
143143
```graphql
144144
{
145145
locations(
146-
filter: {
146+
where: {
147147
geom: {
148148
coveredBy: {
149149
type: "Polygon"
@@ -172,7 +172,7 @@ The connection filter PostGIS plugin exposes these operators on geometry/geograp
172172
```graphql
173173
{
174174
zones(
175-
filter: {
175+
where: {
176176
boundary: {
177177
intersects: {
178178
type: "Point"
@@ -196,7 +196,7 @@ The connection filter PostGIS plugin exposes these operators on geometry/geograp
196196
```typescript
197197
// Find locations within a bounding polygon
198198
const result = await db.location.findMany({
199-
filter: {
199+
where: {
200200
geom: {
201201
coveredBy: {
202202
type: 'Polygon',
@@ -221,7 +221,7 @@ const result = await db.location.findMany({
221221
```typescript
222222
// Find zones that contain a point
223223
const result = await db.zone.findMany({
224-
filter: {
224+
where: {
225225
boundary: {
226226
contains: {
227227
type: 'Point',
@@ -247,8 +247,6 @@ PostGIS spatial queries can be combined with text search filters for location-aw
247247
const result = await db.restaurant.findMany({
248248
where: {
249249
fullTextSearch: 'italian pizza',
250-
},
251-
filter: {
252250
location: {
253251
coveredBy: {
254252
type: 'Polygon',

skills/graphile-search/SKILL.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ Fans out a single text query to all text-compatible adapters (tsvector, BM25, tr
133133

134134
```graphql
135135
query {
136-
allArticles(filter: { fullTextSearch: "postgres tutorial" }) {
136+
allArticles(where: { fullTextSearch: "postgres tutorial" }) {
137137
nodes {
138138
title
139139
searchScore # composite relevance across all text search signals

skills/graphile-search/references/bm25-adapter.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ Given a table with a BM25 index on the `content` column:
2828

2929
```graphql
3030
query {
31-
allDocuments(filter: { bm25Content: { query: "database indexing" } }) {
31+
allDocuments(where: { bm25Content: { query: "database indexing" } }) {
3232
nodes {
3333
title
3434
contentBm25Score

skills/graphile-search/references/pgvector-adapter.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ Given a table with an `embedding vector(768)` column:
2828

2929
```graphql
3030
query {
31-
allDocuments(filter: {
31+
allDocuments(where: {
3232
vectorEmbedding: { query: [0.1, 0.2, ...], metric: COSINE }
3333
}) {
3434
nodes {

skills/graphile-search/references/trgm-adapter.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ Given a table with intentional search (e.g. tsvector) and a `title text` column:
5050

5151
```graphql
5252
query {
53-
allArticles(filter: {
53+
allArticles(where: {
5454
title: { similarTo: { value: "postgre", threshold: 0.2 } }
5555
}) {
5656
nodes { title }
@@ -60,7 +60,7 @@ query {
6060

6161
```graphql
6262
query {
63-
allArticles(filter: {
63+
allArticles(where: {
6464
title: { wordSimilarTo: { value: "postgres", threshold: 0.3 } }
6565
}) {
6666
nodes { title }
@@ -72,7 +72,7 @@ query {
7272

7373
```graphql
7474
query {
75-
allArticles(filter: {
75+
allArticles(where: {
7676
trgmTitle: { value: "postgre", threshold: 0.2 }
7777
}) {
7878
nodes {

skills/graphile-search/references/tsvector-adapter.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Given a table with a `search_tsv tsvector` column:
2929

3030
```graphql
3131
query {
32-
allArticles(filter: { fullTextSearchTsv: { matches: "postgres tutorial" } }) {
32+
allArticles(where: { fullTextSearchTsv: { matches: "postgres tutorial" } }) {
3333
nodes { ... }
3434
}
3535
}

0 commit comments

Comments
 (0)