Skip to main content

feedSavePost Mutation

Description​

Toggles a feed post as a favorite for the given user.

mutation feedSavePost($userRef: ID!, $postRef: ID!) {
feedSavePost(userRef: $userRef, postRef: $postRef) {
_id
type
from
timestamp
item {
_id
artwork
uri
isPreorder
hasAudio
}
isFavorite
config {
_id
name
thumbnail
uri
}
}
}

Variables​

{
"userRef": "75f77ae0f89b7c335bf48090",
"postRef": "9e5676e235880627f73f68b7"
}

Response​

{
"feedSavePost": {
"_id": "e255492c136f7ca1acd60989",
"type": "example",
"from": "example",
"timestamp": "example",
"item": {
"_id": "1b4797ca6ff6ba93ecb0b6cf",
"artwork": "example",
"uri": "https://www.my-common-ground-store.com/release/1763553751/release-artist-release-name",
"isPreorder": true,
"hasAudio": true
},
"isFavorite": true,
"config": {
"_id": "1baa8f0dca5416b520e131a4",
"name": "example",
"thumbnail": "example",
"uri": "https://www.my-common-ground-store.com/release/1763553751/release-artist-release-name"
}
}
}

Arguments​

NameTypeDescription
userRefID!—
postRefID!—

Returns​

FeedPost