Skip to content

Commit 379a4d5

Browse files
authored
Update exemple data to match the tutorial (#2193)
1 parent fd0f78a commit 379a4d5

File tree

1 file changed

+13
-7
lines changed

1 file changed

+13
-7
lines changed

symfony/index.md

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -690,26 +690,32 @@ UI that is shipped with API Platform:
690690

691691
![GraphQL endpoint](images/api-platform-2.6-graphql.png)
692692

693-
Try it out by creating a greeting:
693+
Try it out by creating a book:
694694

695695
```graphql
696696
mutation {
697-
createGreeting(input: { name: "Test2" }) {
698-
greeting {
697+
createBook(input: {
698+
isbn: "9781782164104",
699+
title: "Persistence in PHP with the Doctrine ORM",
700+
description: "This book is designed for PHP developers and architects who want to modernize their skills through better understanding of Persistence and ORM.",
701+
author: "Kévin Dunglas",
702+
publicationDate: "2013-12-01"
703+
}) {
704+
book {
699705
id
700-
name
706+
title
701707
}
702708
}
703709
}
704710
```
705711

706-
And by reading out the greeting:
712+
And by reading out the book:
707713

708714
```graphql
709715
{
710-
greeting(id: "/greetings/1") {
716+
book(id: "/books/2") {
711717
id
712-
name
718+
title
713719
_id
714720
}
715721
}

0 commit comments

Comments
 (0)