Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
Add filters to graphql example
  • Loading branch information
TomHAnderson authored Nov 15, 2019
1 parent ac631c6 commit 3cd3a01
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,21 @@ $entity->getRelation()->getField1()
And see it realized in GraphQL with fine grained control over each field via hydrators:

```js
{ entity { relation { field1 field2 manyToOne { name field3 } } otherRelation { field4 field5 } } }
{
entity (filter: { id: 5 }) {
relation {
field1
field2
manyToOne (filter: { name_contains: 'dev' }) {
name
field3
}
} otherRelation {
field4
field5
}
}
}
```


Expand Down

0 comments on commit 3cd3a01

Please sign in to comment.