From b14de830e1e42f8acd5845a4f51291e21fc90fa0 Mon Sep 17 00:00:00 2001 From: Tom H Anderson Date: Fri, 15 Nov 2019 13:04:23 -0700 Subject: [PATCH] Update README.md --- README.md | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 780be40..34cb52c 100644 --- a/README.md +++ b/README.md @@ -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: