From 03cfc8eeff8267944d38fcbc111abdfeeffa0064 Mon Sep 17 00:00:00 2001 From: Adam Simpson Date: Tue, 23 Apr 2024 16:22:28 -0700 Subject: [PATCH 1/2] Adding link to GraphiQL in Object Types tutorial --- src/pages/graphql-js/object-types.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/graphql-js/object-types.mdx b/src/pages/graphql-js/object-types.mdx index 404d158460..d2def51c40 100644 --- a/src/pages/graphql-js/object-types.mdx +++ b/src/pages/graphql-js/object-types.mdx @@ -135,7 +135,7 @@ When you issue a GraphQL query against an API that returns object types, you can } ``` -If you run this code with `node server.js` and browse to http://localhost:4000/graphql you can try out these APIs with GraphiQL. +If you run this code with `node server.js` and browse to http://localhost:4000/graphql you can try out these APIs with [GraphiQL](https://github.com/graphql/graphiql/tree/main). This way of defining object types often provides advantages over a traditional REST API. Instead of doing one API request to get basic information about an object, and then multiple subsequent API requests to find out more information about that object, you can get all of that information in one API request. That saves bandwidth, makes your app run faster, and simplifies your client-side logic. From 9c7b1a1f59c474cc9191fd10e749d3714be57c24 Mon Sep 17 00:00:00 2001 From: Benjie Date: Wed, 24 Apr 2024 16:14:26 +0100 Subject: [PATCH 2/2] Update src/pages/graphql-js/object-types.mdx --- src/pages/graphql-js/object-types.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/graphql-js/object-types.mdx b/src/pages/graphql-js/object-types.mdx index d2def51c40..e54439ea91 100644 --- a/src/pages/graphql-js/object-types.mdx +++ b/src/pages/graphql-js/object-types.mdx @@ -135,7 +135,7 @@ When you issue a GraphQL query against an API that returns object types, you can } ``` -If you run this code with `node server.js` and browse to http://localhost:4000/graphql you can try out these APIs with [GraphiQL](https://github.com/graphql/graphiql/tree/main). +If you run this code with `node server.js` and browse to http://localhost:4000/graphql you can try out these APIs with [GraphiQL](https://github.com/graphql/graphiql). This way of defining object types often provides advantages over a traditional REST API. Instead of doing one API request to get basic information about an object, and then multiple subsequent API requests to find out more information about that object, you can get all of that information in one API request. That saves bandwidth, makes your app run faster, and simplifies your client-side logic.