You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, @aloks98 Below is the frontmatter format that will be used for Graphql queries:
---
title: "<Title>"
date: "2017-04-07"
coverImage: "<relative path>"
author: "<Author id which is linked to the author.yaml file>"
tags: ["Engineering","JavaScript","Hacks","Array"]
description: "<Short description>"
pinned: <boolean - used to showcase the blog at the top>
---
From the above frontmatter we are:
Listing the blog based on the date (recent first)
If there is any blog that has pinned: true it should show at the top else the latest blog should show at the top.
Filter blogs based on tags
Filter blogs based on the author
So the queries are written for the above filters, it has the scope of optimization, you can go ahead and have a look at the queries and let me know your thoughts on it and how we can improve the performance by modifying it.
GraphQL queries are duplicated at many places in the templates.
Please remove those duplicate queries to help improve code quality.
The text was updated successfully, but these errors were encountered: