Skip to content

Commit 7403786

Browse files
committed
docs(graphile-postgis): fix — GraphQL arg is where:, not filter:
1 parent 355c046 commit 7403786

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

graphile/graphile-postgis/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -193,14 +193,14 @@ await orm.telemedicineClinic
193193

194194
#### Through GraphQL
195195

196-
PostGraphile exposes the same shape on its connection argument. The
197-
ORM calls it `where:`; raw PostGraphile calls it `filter:` — that's the
198-
generated schema's name, not ours. Both accept the same tree:
196+
The connection argument is `where:` at the GraphQL layer too — same
197+
name, same tree. Only the generated input **type** keeps the word
198+
"Filter" in it (e.g. `TelemedicineClinicFilter`):
199199

200200
```graphql
201201
{
202202
telemedicineClinics(
203-
filter: { county: { some: { name: { equalTo: "Bay County" } } } }
203+
where: { county: { some: { name: { equalTo: "Bay County" } } } }
204204
) {
205205
nodes { id name }
206206
}

0 commit comments

Comments
 (0)