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": "37ce9e44b7c4b68553135174",
"postRef": "8a69a0fa69c78605c1bd56bf"
}

Response​

{
"feedSavePost": {
"_id": "9a4f12afd878f9b2ebcf114d",
"type": "example",
"from": "example",
"timestamp": "example",
"item": {
"_id": "e2480d5fb435a2cd185b1d97",
"artwork": "example",
"uri": "https://www.my-common-ground-store.com/release/1763553751/release-artist-release-name",
"isPreorder": true,
"hasAudio": true
},
"isFavorite": true,
"config": {
"_id": "6c5d4ab4fa654390641e16f4",
"name": "example",
"thumbnail": "example",
"uri": "https://www.my-common-ground-store.com/release/1763553751/release-artist-release-name"
}
}
}

Arguments​

NameTypeDescription
userRefID!—
postRefID!—

Returns​

FeedPost