We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8eae8dc commit ff842f5Copy full SHA for ff842f5
1 file changed
src/fetch-content.js
@@ -5,7 +5,6 @@ const endpoint = 'https://gql.hashnode.com/';
5
const commonFields = `
6
id
7
title
8
- slug
9
author {
10
11
username
@@ -56,6 +55,7 @@ const postBySlugQuery = gql`
56
55
publication(host: $host) {
57
post(slug: $slug) {
58
${commonFields}
+ slug
59
tags {
60
61
name
@@ -71,6 +71,7 @@ const postByIdQuery = gql`
71
query GetPostById($id: ID!) {
72
post(id: $id) {
73
74
75
76
77
0 commit comments