Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
TomHAnderson authored Nov 15, 2019
1 parent 3cd3a01 commit b14de83
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,16 @@ are provided to filter collections at any location in the query.

Doctrine provides easy taversal of your database. Consider the following imaginary query:
```php
$entity->getRelation()->getField1()
->getField2()
->getManyToOne()->getName()
->getField3()
->getOtherRelation()->getField4()
->getField5()
$entity[where id = 5]->
getRelation()
->getField1()
->getField2()
->getManyToOne([where name like '%dev%'])
->getName()
->getField3()
->getOtherRelation()
->getField4()
->getField5()
```

And see it realized in GraphQL with fine grained control over each field via hydrators:
Expand Down

0 comments on commit b14de83

Please sign in to comment.