Skip to main content

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": "698248060f1a12033404f693",
"postRef": "ecca66601072faadd20d0297"
}

Response​

{
"feedGetPost": {
"_id": "1da5757da25ebe93659d2fdf",
"type": "example",
"from": "example",
"timestamp": "example",
"item": {
"_id": "1d94ea62e09b20e599e65cb6",
"artwork": "example",
"uri": "https://www.my-common-ground-store.com/release/1763553751/release-artist-release-name",
"isPreorder": true,
"hasAudio": true
},
"isFavorite": true,
"config": {
"_id": "559f38ecabcbcb6220436804",
"name": "example",
"thumbnail": "example",
"uri": "https://www.my-common-ground-store.com/release/1763553751/release-artist-release-name"
}
}
}

Arguments​

NameTypeDescription
userRefID!—
postRefID!—

Returns​

FeedPost