light weight graphql query to fetch data to construct post URL
This commit is contained in:
@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -55,6 +55,7 @@ type User {
|
||||
id: String!
|
||||
name: String!
|
||||
imageId: String!
|
||||
username: String!
|
||||
}
|
||||
|
||||
type Post {
|
||||
|
Reference in New Issue
Block a user