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": "ac1bbabd43d41316e3312dd3",
"postRef": "5ff2969744d1566a079ff6de"
}

Response​

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

Arguments​

NameTypeDescription
userRefID!—
postRefID!—

Returns​

FeedPost