From 3d6f3bfaa01a9b71bd2a47805910f67346f6e508 Mon Sep 17 00:00:00 2001 From: Tom H Anderson Date: Sat, 23 Jun 2018 20:46:40 -0600 Subject: [PATCH] Added imaginary example --- README.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/README.md b/README.md index b2b9954..3d08fb3 100644 --- a/README.md +++ b/README.md @@ -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) ==========================================================