light weight graphql query to fetch data to construct post URL

This commit is contained in:
realaravinth
2021-11-25 12:35:47 +05:30
parent 32934c8353
commit 9c5342a053
4 changed files with 55 additions and 6 deletions

View File

@ -8,6 +8,7 @@ query GetPost($id: ID!) {
name
id
imageId
username
}
previewImage {
id
@ -49,3 +50,12 @@ query GetPost($id: ID!) {
}
}
}
query GetPostLight($id: ID!) {
post(id: $id) {
uniqueSlug
creator {
username
}
}
}

View File

@ -55,6 +55,7 @@ type User {
id: String!
name: String!
imageId: String!
username: String!
}
type Post {