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": "e4c507e187e0a42addb2b56c",
"postRef": "cf5348bd4600ab3ae5e24463"
}
Response
{
"feedGetPost": {
"_id": "76a24d6e32e082f7309a9b24",
"type": "example",
"from": "example",
"timestamp": "example",
"item": {
"_id": "f20e03bbf27caeb90a9e85d1",
"artwork": "example",
"uri": "https://www.my-common-ground-store.com/release/1763553751/release-artist-release-name",
"isPreorder": true,
"hasAudio": true
},
"isFavorite": true,
"config": {
"_id": "81225df2c3169e4c5f473489",
"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! | — |