Skip to content

Commit ff842f5

Browse files
fix: remove slug from draft queries (#100)
1 parent 8eae8dc commit ff842f5

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/fetch-content.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ const endpoint = 'https://gql.hashnode.com/';
55
const commonFields = `
66
id
77
title
8-
slug
98
author {
109
id
1110
username
@@ -56,6 +55,7 @@ const postBySlugQuery = gql`
5655
publication(host: $host) {
5756
post(slug: $slug) {
5857
${commonFields}
58+
slug
5959
tags {
6060
id
6161
name
@@ -71,6 +71,7 @@ const postByIdQuery = gql`
7171
query GetPostById($id: ID!) {
7272
post(id: $id) {
7373
${commonFields}
74+
slug
7475
tags {
7576
id
7677
name

0 commit comments

Comments
 (0)