feedGetPost Query
Description
Returns a single feed post for the given user (resolving its favorite state).
query feedGetPost($userRef: ID!, $postRef: ID!) {
feedGetPost(userRef: $userRef, postRef: $postRef) {
_id
type
from
timestamp
item {
_id
artwork
uri
isPreorder
hasAudio
}
isFavorite
config {
_id
name
thumbnail
uri
}
}
}
Variables
{
"userRef": "2aa62f48546fa42009414915",
"postRef": "96a1c05c7b93fc2736f87906"
}
Response
{
"feedGetPost": {
"_id": "23133f9b0b3e5f35ca286248",
"type": "example",
"from": "example",
"timestamp": "example",
"item": {
"_id": "ac5f6870d49bc1b200a2ed6b",
"artwork": "example",
"uri": "https://www.my-common-ground-store.com/release/1763553751/release-artist-release-name",
"isPreorder": true,
"hasAudio": true
},
"isFavorite": true,
"config": {
"_id": "0b4c36ede5bc9ceeced333c7",
"name": "example",
"thumbnail": "example",
"uri": "https://www.my-common-ground-store.com/release/1763553751/release-artist-release-name"
}
}
}
Arguments
| Name | Type | Description |
|---|---|---|
userRef | ID! | — |
postRef | ID! | — |