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": "f9572f77868b4b1b16110b84",
"postRef": "870d797042e8c267d95a2392"
}

Response

{
"feedGetPost": {
"_id": "c6e16dd1e0a42e4b4eb6c946",
"type": "example",
"from": "example",
"timestamp": "example",
"item": {
"_id": "60b268b21f4d3f3e1f3662b5",
"artwork": "example",
"uri": "https://www.my-common-ground-store.com/release/1763553751/release-artist-release-name",
"isPreorder": true,
"hasAudio": true
},
"isFavorite": true,
"config": {
"_id": "f90812ea2358fff77f6addb9",
"name": "example",
"thumbnail": "example",
"uri": "https://www.my-common-ground-store.com/release/1763553751/release-artist-release-name"
}
}
}

Arguments

NameTypeDescription
userRefID!
postRefID!

Returns

FeedPost