From 5fff75fbe978ace346211865c396503ed5c64223 Mon Sep 17 00:00:00 2001 From: Ruaney Mainarth <44595869+Ruaney@users.noreply.github.com> Date: Thu, 1 Sep 2022 17:50:31 -0300 Subject: [PATCH 1/2] Update Tutorial-ExpressGraphQL.md to facilitate access localhost in one click --- src/content/graphql-js/Tutorial-ExpressGraphQL.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/content/graphql-js/Tutorial-ExpressGraphQL.md b/src/content/graphql-js/Tutorial-ExpressGraphQL.md index 2a5f32bbd7..d5dcf1ad47 100644 --- a/src/content/graphql-js/Tutorial-ExpressGraphQL.md +++ b/src/content/graphql-js/Tutorial-ExpressGraphQL.md @@ -49,6 +49,8 @@ You can run this GraphQL server with: ```bash node server.js ``` +and browse to: +[https://localhost:4000/graphql](http://localhost:4000/graphql) Since we configured `graphqlHTTP` with `graphiql: true`, you can use the GraphiQL tool to manually issue GraphQL queries. If you navigate in a web browser to `http://localhost:4000/graphql`, you should see an interface that lets you enter queries. It should look like: From a830672513b86e6c311beb01829770159da6537f Mon Sep 17 00:00:00 2001 From: hwillson Date: Sat, 5 Nov 2022 20:49:07 -0400 Subject: [PATCH 2/2] Remove new link and convert existing endpoint URL to be clickable Since we're already listing the endpoint a couple lines down, let's just make it a proper link instead of duplicating the URL. --- src/content/graphql-js/Tutorial-ExpressGraphQL.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/content/graphql-js/Tutorial-ExpressGraphQL.md b/src/content/graphql-js/Tutorial-ExpressGraphQL.md index d5dcf1ad47..09cfc7a7ec 100644 --- a/src/content/graphql-js/Tutorial-ExpressGraphQL.md +++ b/src/content/graphql-js/Tutorial-ExpressGraphQL.md @@ -49,10 +49,8 @@ You can run this GraphQL server with: ```bash node server.js ``` -and browse to: -[https://localhost:4000/graphql](http://localhost:4000/graphql) -Since we configured `graphqlHTTP` with `graphiql: true`, you can use the GraphiQL tool to manually issue GraphQL queries. If you navigate in a web browser to `http://localhost:4000/graphql`, you should see an interface that lets you enter queries. It should look like: +Since we configured `graphqlHTTP` with `graphiql: true`, you can use the GraphiQL tool to manually issue GraphQL queries. If you navigate in a web browser to [https://localhost:4000/graphql](http://localhost:4000/graphql), you should see an interface that lets you enter queries. It should look like: ![hello world graphql example](/img/hello.png)