From 5f60b51529fc72f9de6d8851eab0c74a9a661dea Mon Sep 17 00:00:00 2001 From: Akshay Date: Wed, 23 Feb 2022 22:16:14 +0100 Subject: [PATCH] Issue-#850: Rest api doc --- gatsby-node.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/gatsby-node.js b/gatsby-node.js index f755bca6..268ddbeb 100755 --- a/gatsby-node.js +++ b/gatsby-node.js @@ -192,8 +192,13 @@ exports.createPages = ({ graphql, actions }) => { const oceanPyList = filterMarkdownList(markdowns, 'ocean.py') const providerList = filterMarkdownList(markdowns, 'provider') const subgraphList = filterMarkdownList(markdowns, 'ocean-subgraph') - - console.log('Aquarius rest api', markdowns) + const aquariusList = filterMarkdownList(markdowns, 'aquarius') + const r = aquariusList.map(({ node }) => [ + node.frontmatter.title, + node.frontmatter.app, + node.frontmatter.source + ]) + console.log('Aquarius rest api', r) const aquariusRestApi = result.data.aquariusRestApi.edges[0].node await createRestApiPage( createPage,