From b896388c28895bf0bd1cbd43e89be361e67a2f02 Mon Sep 17 00:00:00 2001 From: AmirMasoud Date: Mon, 22 Oct 2018 12:07:39 +0330 Subject: [PATCH] Update Readme.md --- Readme.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Readme.md b/Readme.md index d660d35a..8e094d4d 100644 --- a/Readme.md +++ b/Readme.md @@ -324,7 +324,7 @@ Add the query to the `config/graphql.php` configuration file And that's it. You should be able to query GraphQL with a request to the url `/graphql` (or anything you choose in your config). Try a GET request with the following `query` input -``` +```javascript query FetchUsers { users { id @@ -404,7 +404,7 @@ You then add the mutation to the `config/graphql.php` configuration file You should then be able to use the following query on your endpoint to do the mutation. -``` +```javascript mutation users { updateUserPassword(id: "1", password: "newpassword") { id