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": "096851517d0f0d96920d7c38",
"postRef": "37a5fe44f760772e364391b5"
}
Response
{
"feedGetPost": {
"_id": "e4c29ccc4843e14f35e677a6",
"type": "example",
"from": "example",
"timestamp": "example",
"item": {
"_id": "8962601865179a0066849ca7",
"artwork": "example",
"uri": "https://www.my-common-ground-store.com/release/1763553751/release-artist-release-name",
"isPreorder": true,
"hasAudio": true
},
"isFavorite": true,
"config": {
"_id": "355463290ee40aa256431db5",
"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! | — |