Skip to content

Commit

Permalink
Added imaginary example
Browse files Browse the repository at this point in the history
  • Loading branch information
TomHAnderson committed Jun 24, 2018
1 parent b82e906 commit 3d6f3bf
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,22 @@ allowing full control over each field using hydrator filters and strategies.
Multiple object managers are supported.
Multiple hydrator configurations are supported.

Doctrine provides easy taversal of your database. Consider the following imaginary query:
```php
$entity->getRelation()->getField1()
->getField2()
->getManyToOne()->getName()
->getField3()
->getOtherRelation()->getField4()
->getField5()
```

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

```js
{ entity { relation { field1 field2 manyToOne { name field 3} } otherRelation { field4 field5 } } }
```


[Read the Documentation](http://graphql.apiskeletons.com)
==========================================================

0 comments on commit 3d6f3bf

Please sign in to comment.