From 123e60c1422f48e4a8f380662d927ace65a9d704 Mon Sep 17 00:00:00 2001 From: Cristobal Silva Date: Sat, 13 Oct 2018 04:15:58 -0300 Subject: [PATCH] Update gatsby-config.js Replaced allPosts and allAuthors with the appropiate values for the newer GraphCMS API. GraphCMS docs comparing new vs old API: https://docs.graphcms.com/developers/api/api-old-and-new --- gatsby-config.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gatsby-config.js b/gatsby-config.js index 9bc1e7c..d34b9c0 100644 --- a/gatsby-config.js +++ b/gatsby-config.js @@ -18,7 +18,7 @@ module.exports = { token: process.env.GATSBY_GRAPHQLCMS_TOKEN, // Get all remote data query: `{ - allPosts { + posts { id slug title @@ -28,7 +28,7 @@ module.exports = { handle } } - allAuthors { + authors { id name bibliography